summaryrefslogtreecommitdiffstats
path: root/crawl-ref
diff options
context:
space:
mode:
authorennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573>2008-07-12 03:29:24 +0000
committerennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573>2008-07-12 03:29:24 +0000
commit5ced6131ae73467a93f39436d1922d76ac169fae (patch)
treea9f124c0adc8f01911e569f1c7179ad3db646a4f /crawl-ref
parent440574bfab8d9a81514b0a1b8b7da2465a7d10c5 (diff)
downloadcrawl-ref-5ced6131ae73467a93f39436d1922d76ac169fae.tar.gz
crawl-ref-5ced6131ae73467a93f39436d1922d76ac169fae.zip
Applying r6511 to 0.4.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.4@6512 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref')
-rw-r--r--crawl-ref/source/AppHdr.h4
-rw-r--r--crawl-ref/source/luadgn.cc5
-rw-r--r--crawl-ref/source/makefile.dos2
-rw-r--r--crawl-ref/source/makefile.mgw2
-rw-r--r--crawl-ref/source/makefile_tiles.mgw2
5 files changed, 12 insertions, 3 deletions
diff --git a/crawl-ref/source/AppHdr.h b/crawl-ref/source/AppHdr.h
index 4177673947..700bfc2c0c 100644
--- a/crawl-ref/source/AppHdr.h
+++ b/crawl-ref/source/AppHdr.h
@@ -180,6 +180,10 @@
#include <dos.h>
+ // Use Perl-compatible regular expressions. libpcre must be available and
+ // linked in. This is optional.
+ #define REGEX_PCRE
+
#elif defined(WIN32CONSOLE) || defined(WIN32TILES)
#if defined(WIN32CONSOLE)
#include "libw32c.h"
diff --git a/crawl-ref/source/luadgn.cc b/crawl-ref/source/luadgn.cc
index 2a0d2faac9..02e25d5b13 100644
--- a/crawl-ref/source/luadgn.cc
+++ b/crawl-ref/source/luadgn.cc
@@ -1788,10 +1788,11 @@ static int dgn_make_pillars(lua_State *ls)
return 0;
}
- const float PI = 3.14159265f;
+ // [enne] The underscore is for DJGPP's brain damage.
+ const float _PI = 3.14159265f;
for (int n = 0; n < num; n++)
{
- float angle = n * 2 * PI / (float)num;
+ float angle = n * 2 * _PI / (float)num;
int x = (int)std::floor(std::cos(angle) * big_radius * scale_x + 0.5f);
int y = (int)std::floor(std::sin(angle) * big_radius + 0.5f);
diff --git a/crawl-ref/source/makefile.dos b/crawl-ref/source/makefile.dos
index ea64341147..6733c95a90 100644
--- a/crawl-ref/source/makefile.dos
+++ b/crawl-ref/source/makefile.dos
@@ -30,7 +30,7 @@ SQLLIB := sql3
SQLLIBA := lib$(SQLLIB).a
FSQLLIBA := $(SQLSRC)\$(SQLLIBA)
-LIB = -L$(LUASRC) -l$(LUALIB) -L$(SQLSRC) -l$(SQLLIB)
+LIB = -L$(LUASRC) -l$(LUALIB) -L$(SQLSRC) -l$(SQLLIB) -lpcre
INCLUDES := -Iutil -I. -I$(LUASRC) -I$(SQLSRC)
WORKDIR := $(shell cd)
diff --git a/crawl-ref/source/makefile.mgw b/crawl-ref/source/makefile.mgw
index 9c306ae911..6a525c7e3a 100644
--- a/crawl-ref/source/makefile.mgw
+++ b/crawl-ref/source/makefile.mgw
@@ -140,6 +140,8 @@ endif
copy /y dat\database\*.txt $(INSTALLDIR)\dat\database
copy /y ..\settings\* $(INSTALLDIR)\settings
copy /y ..\docs\* $(INSTALLDIR)\docs
+ copy /y ..\* $(INSTALLDIR)
+ $(DELETE) $(INSTALLDIR)\*.sh
clean:
$(DELETE) $(OPATH)\*.o
diff --git a/crawl-ref/source/makefile_tiles.mgw b/crawl-ref/source/makefile_tiles.mgw
index 9a3abf1e5c..fed4392b7a 100644
--- a/crawl-ref/source/makefile_tiles.mgw
+++ b/crawl-ref/source/makefile_tiles.mgw
@@ -184,6 +184,8 @@ endif
copy /y ..\docs\* $(INSTALLDIR)\docs
mkdir $(INSTALLDIR)\dat\tiles 2>nul || echo "" > nul
copy /y dat\tiles\*.bmp $(INSTALLDIR)\dat\tiles
+ copy /y ..\* $(INSTALLDIR)
+ $(DELETE) $(INSTALLDIR)\*.sh
clean:
$(DELETE) $(OPATH)\*.o