summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mtransit.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-04-14 22:04:34 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-04-14 22:04:34 +0000
commit39f1638a065766fa67c70871c95a0a8400f044f1 (patch)
tree29de7d191f59b1c55842b25bee2f225e5de1b169 /crawl-ref/source/mtransit.cc
parent1c7787b17cee82ed787ff5fed1eea5c943c0cd64 (diff)
downloadcrawl-ref-39f1638a065766fa67c70871c95a0a8400f044f1.tar.gz
crawl-ref-39f1638a065766fa67c70871c95a0a8400f044f1.zip
Apply Horst von Brand's (first) patch 1887488: gcc-4.3 compile failures.
I'm not sure what to do about the rest of that tracker item. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4233 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/mtransit.cc')
-rw-r--r--crawl-ref/source/mtransit.cc9
1 files changed, 6 insertions, 3 deletions
diff --git a/crawl-ref/source/mtransit.cc b/crawl-ref/source/mtransit.cc
index 417a24d585..2a9edda813 100644
--- a/crawl-ref/source/mtransit.cc
+++ b/crawl-ref/source/mtransit.cc
@@ -7,6 +7,9 @@
*/
#include "AppHdr.h"
+
+#include <algorithm>
+
#include "mtransit.h"
#include "dungeon.h"
@@ -141,7 +144,7 @@ static bool place_lost_monster(follower &f)
#ifdef DEBUG_DIAGNOSTICS
mprf(MSGCH_DIAGNOSTICS, "Placing lost one: %s",
f.mons.name(DESC_PLAIN).c_str());
-#endif
+#endif
return (f.place(false));
}
@@ -209,7 +212,7 @@ void place_transiting_items()
pos.x = random_range(X_BOUND_1 + 1, X_BOUND_2 - 1);
pos.y = random_range(Y_BOUND_1 + 1, Y_BOUND_2 - 1);
}
-
+
const coord_def where_to_go
= dgn_find_nearby_stair(DNGN_ESCAPE_HATCH_DOWN, pos, true);
@@ -294,7 +297,7 @@ bool follower::place(bool near_player)
m.reset();
break;
}
-
+
return (false);
}