From 48b1b54aaf8c7ccc2b016158f58cf34385dd5068 Mon Sep 17 00:00:00 2001 From: dshaligram Date: Fri, 17 Aug 2007 22:20:13 +0000 Subject: Fixed map marker crashes. Reduced size of Pan demon bands summoned post-Orb (cbus). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2010 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/dungeon.cc | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'crawl-ref/source/dungeon.cc') diff --git a/crawl-ref/source/dungeon.cc b/crawl-ref/source/dungeon.cc index d40049a76c..2bf5e3b0ea 100644 --- a/crawl-ref/source/dungeon.cc +++ b/crawl-ref/source/dungeon.cc @@ -537,7 +537,7 @@ static void reset_level() env.shop[shcount].type = SHOP_UNASSIGNED; // clear all markers - env_clear_markers(); + env.markers.clear(); } static void build_layout_skeleton(int level_number, int level_type, @@ -651,7 +651,7 @@ static void fixup_branch_stairs() && grd[x][y] <= DNGN_ROCK_STAIRS_UP) { if (grd[x][y] == DNGN_STONE_STAIRS_UP_I) - env_add_marker( + env.markers.add( new map_feature_marker(coord_def(x,y), grd[x][y])); grd[x][y] = exit; @@ -1424,7 +1424,7 @@ static void fixup_bazaar_stairs() else { grd[x][y] = DNGN_STONE_ARCH; - env_add_marker( + env.markers.add( new map_feature_marker( coord_def(x, y), DNGN_STONE_ARCH)); @@ -3092,7 +3092,7 @@ static bool build_minivaults(int level_number, int force_vault, grd[vx][vy] = oldgrid; dungeon_terrain_changed(coord_def(vx, vy), newgrid, true, true); - env_remove_markers_at(coord_def(vx, vy), MAT_ANY); + env.markers.remove_markers_at(coord_def(vx, vy), MAT_ANY); } } } @@ -3531,7 +3531,7 @@ bool dgn_place_map(int map, bool generating_level, bool clobber) for (int x = vp.x; x < vp.x + vp.width; ++x) { std::vector markers = - env_get_markers(coord_def(x, y)); + env.markers.get_markers_at(coord_def(x, y)); for (int i = 0, size = markers.size(); i < size; ++i) markers[i]->activate(); @@ -3544,7 +3544,7 @@ bool dgn_place_map(int map, bool generating_level, bool clobber) if (fixup) { link_items(); - env_activate_markers(); + env.markers.activate_all(); // Force teleport to place the player somewhere sane. you_teleport_now(false, false); @@ -3636,7 +3636,7 @@ static bool build_vaults(int level_number, int force_vault, int rune_subst, grd[vx][vy] = oldgrid; dungeon_terrain_changed(coord_def(vx, vy), newgrid, true, true); - env_remove_markers_at(coord_def(vx, vy), MAT_ANY); + env.markers.remove_markers_at(coord_def(vx, vy), MAT_ANY); } } } @@ -5715,7 +5715,7 @@ static void labyrinth_place_entry_point(const dgn_region ®ion, { const coord_def p = labyrinth_find_entry_point(region, pos); if (in_bounds(p)) - env_add_marker(new map_feature_marker(pos, DNGN_ENTER_LABYRINTH)); + env.markers.add(new map_feature_marker(pos, DNGN_ENTER_LABYRINTH)); } static void labyrinth_level(int level_number) @@ -6882,7 +6882,7 @@ static coord_def dgn_find_closest_to_stone_stairs() static coord_def dgn_find_feature_marker(dungeon_feature_type feat) { - std::vector markers = env_get_all_markers(); + std::vector markers = env.markers.get_all(); for (int i = 0, size = markers.size(); i < size; ++i) { map_marker *mark = markers[i]; -- cgit v1.2.3-54-g00ecf