summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/player.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/player.cc')
-rw-r--r--crawl-ref/source/player.cc7
1 files changed, 2 insertions, 5 deletions
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc
index 175db38a74..258fefa122 100644
--- a/crawl-ref/source/player.cc
+++ b/crawl-ref/source/player.cc
@@ -299,7 +299,7 @@ bool move_player_to_grid( int x, int y, bool stepped, bool allow_shift,
const int type = trap_category( env.trap[id].type );
grd[you.x_pos][you.y_pos] = type;
- set_envmap_char(you.x_pos, you.y_pos, get_sightmap_char(type));
+ set_envmap_obj(you.x_pos, you.y_pos, type);
}
// not easy to blink onto a trap without setting it off:
@@ -2193,10 +2193,7 @@ void forget_map(unsigned char chance_forgotten)
for (ycount = 0; ycount < GYM; ycount++)
{
if (random2(100) < chance_forgotten)
- {
- env.map[xcount][ycount] = 0;
- env.map_col[xcount][ycount].clear();
- }
+ env.map[xcount][ycount].clear();
}
}
} // end forget_map()