summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/luadgn.cc
diff options
context:
space:
mode:
authorpauldubois <pauldubois@c06c8d41-db1a-0410-9941-cceddc491573>2008-03-10 07:05:58 +0000
committerpauldubois <pauldubois@c06c8d41-db1a-0410-9941-cceddc491573>2008-03-10 07:05:58 +0000
commit6b30618d321c3a9521d9fcb1f01b023cbd4acae4 (patch)
tree4ffe0c85f10edfe442faf65babe62cd2b42a3099 /crawl-ref/source/luadgn.cc
parentdd916b6a6dc736d18f47428be0694479714e3dfe (diff)
downloadcrawl-ref-6b30618d321c3a9521d9fcb1f01b023cbd4acae4.tar.gz
crawl-ref-6b30618d321c3a9521d9fcb1f01b023cbd4acae4.zip
Fix some link errors and a few remaining compile warnings (the
ones that aren't bugs) - if static const int foo=VALUE; is in header, don't need to have a definition in a .cc file. The definition goes into every .cc file with "vague linkage" - add sqlite and lua to the sln/vcproj git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3576 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/luadgn.cc')
-rw-r--r--crawl-ref/source/luadgn.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/luadgn.cc b/crawl-ref/source/luadgn.cc
index 7cbf853697..57442e5d1e 100644
--- a/crawl-ref/source/luadgn.cc
+++ b/crawl-ref/source/luadgn.cc
@@ -1485,7 +1485,7 @@ static int dgn_random_walk(lua_State *ls)
// Allow movement to all 8 adjacent squares if distance is 1
// (needed since diagonal moves are distance sqrt(2))
if (dist == 1)
- dist_left = SQRT_2;
+ dist_left = (float)SQRT_2;
int moves_left = dist;
coord_def pos(x, y);