diff options
Diffstat (limited to 'crawl-ref/source')
-rw-r--r-- | crawl-ref/source/misc.cc | 4 | ||||
-rw-r--r-- | crawl-ref/source/tile2.cc | 8 |
2 files changed, 8 insertions, 4 deletions
diff --git a/crawl-ref/source/misc.cc b/crawl-ref/source/misc.cc index 6e24395952..211682bb46 100644 --- a/crawl-ref/source/misc.cc +++ b/crawl-ref/source/misc.cc @@ -2236,8 +2236,6 @@ void down_stairs( int old_level, dungeon_feature_type force_stair, you.duration[DUR_BEHELD] = 0; } - viewwindow(1, true); - if (you.skills[SK_TRANSLOCATIONS] > 0 && !allow_control_teleport( true )) mpr( "You sense a powerful magical force warping space.", MSGCH_WARN ); @@ -2247,6 +2245,8 @@ void down_stairs( int old_level, dungeon_feature_type force_stair, TileNewLevel(newlevel); #endif // USE_TILE + viewwindow(1, true); + if (collect_travel_data) { // Update stair information for the stairs we just descended, and the diff --git a/crawl-ref/source/tile2.cc b/crawl-ref/source/tile2.cc index 5688f14d68..16b75861d5 100644 --- a/crawl-ref/source/tile2.cc +++ b/crawl-ref/source/tile2.cc @@ -917,6 +917,8 @@ static void _TileLoadWallAux(int idx_src, int idx_dst, img_type wall) void WallIdx(int &wall, int &floor, int &special) { + // Note: This function must be deterministic. + special = -1; if (you.level_type == LEVEL_PANDEMONIUM) @@ -967,9 +969,11 @@ void WallIdx(int &wall, int &floor, int &special) break; } - if (one_chance_in(3)) + unsigned int seen = you.get_place_info(LEVEL_PANDEMONIUM).levels_seen; + + if ((seen + env.rock_colour) % 3 == 1) wall = IDX_WALL_FLESH; - if (one_chance_in(3)) + if ((seen + env.floor_colour) % 3 == 1) floor = IDX_FLOOR_NERVES; return; |