diff options
Diffstat (limited to 'crawl-ref/source/overmap.cc')
-rw-r--r-- | crawl-ref/source/overmap.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/crawl-ref/source/overmap.cc b/crawl-ref/source/overmap.cc index 5e1360c427..9a55761e60 100644 --- a/crawl-ref/source/overmap.cc +++ b/crawl-ref/source/overmap.cc @@ -55,8 +55,7 @@ void seen_notable_thing( int which_thing, int x, int y ) if (you.level_type != LEVEL_DUNGEON) return; - coord_def pos = {x, y}; - + const coord_def pos(x, y); const god_type god = grid_altar_god(which_thing); if (god != GOD_NO_GOD) seen_altar( god, pos ); @@ -490,7 +489,7 @@ void seen_altar( god_type god, const coord_def& pos ) void unnotice_altar() { - const coord_def pos = { you.x_pos, you.y_pos }; + const coord_def pos(you.x_pos, you.y_pos); const level_pos curpos(level_id::get_current_level_id(), pos); // Hmm, what happens when erasing a nonexistent key directly? if (altars_present.find(curpos) != altars_present.end()) |