summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/overmap.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/overmap.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/overmap.cc')
-rw-r--r--crawl-ref/source/overmap.cc13
1 files changed, 7 insertions, 6 deletions
diff --git a/crawl-ref/source/overmap.cc b/crawl-ref/source/overmap.cc
index 0deb980903..cf02458678 100644
--- a/crawl-ref/source/overmap.cc
+++ b/crawl-ref/source/overmap.cc
@@ -22,6 +22,7 @@
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
+#include <algorithm>
#include "externs.h"
@@ -62,11 +63,11 @@ void seen_notable_thing( dungeon_feature_type which_thing, int x, int y )
{
// Tell the world first.
dungeon_events.fire_position_event(DET_PLAYER_IN_LOS, coord_def(x, y));
-
+
// Don't record in temporary terrain
if (you.level_type != LEVEL_DUNGEON)
return;
-
+
const coord_def pos(x, y);
const god_type god = grid_altar_god(which_thing);
if (god != GOD_NO_GOD)
@@ -205,7 +206,7 @@ std::string overview_description_string()
disp += EOL;
seen_anything = true;
}
-
+
++branchcount;
snprintf(buffer, sizeof buffer, "<yellow>%-6s</yellow>: %-7s",
@@ -224,7 +225,7 @@ std::string overview_description_string()
// remove unworthy altars from the list we show the user. Yeah,
// one more round of map iteration.
const altar_map_type notable_altars = get_notable_altars(altars_present);
-
+
// print altars
// we loop through everything a dozen times, oh well
if ( !notable_altars.empty() )
@@ -237,7 +238,7 @@ std::string overview_description_string()
}
level_id last_id;
- std::map<level_pos, god_type>::const_iterator ci_altar;
+ std::map<level_pos, god_type>::const_iterator ci_altar;
for ( int cur_god = GOD_NO_GOD; cur_god < NUM_GODS; ++cur_god )
{
last_id.depth = 10000; // fake depth to be sure we don't match
@@ -517,7 +518,7 @@ void seen_altar( god_type god, const coord_def& pos )
// can't record in abyss or pan.
if ( you.level_type != LEVEL_DUNGEON )
return;
-
+
level_pos where(level_id::current(), pos);
altars_present[where] = god;
}