Skip to content

Commit

Permalink
Merge pull request #275 from habu1010/feature/fix-unconnected-stair
Browse files Browse the repository at this point in the history
[fix] テレポートレベル巻物で下の階へ移動してから階段を登ると巻物を読んだ場所に出ることがある #192
  • Loading branch information
habu1010 committed Feb 23, 2021
2 parents 9f7cfb9 + 431b499 commit fe4124e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/floor/floor-leaver.c
Expand Up @@ -409,13 +409,10 @@ void leave_floor(player_type *creature_ptr)
set_superstealth(creature_ptr, FALSE);

new_floor_id = 0;
FLOOR_IDX tmp_floor_idx = 0;
if (!creature_ptr->floor_id && (creature_ptr->change_floor_mode & CFM_SAVE_FLOORS) && !(creature_ptr->change_floor_mode & CFM_NO_RETURN))
tmp_floor_idx = get_new_floor_id(creature_ptr);

preserve_info(creature_ptr);
saved_floor_type *sf_ptr = get_sf_ptr(creature_ptr->floor_id);
if ((creature_ptr->change_floor_mode & CFM_RAND_CONNECT) && tmp_floor_idx)
if (creature_ptr->change_floor_mode & CFM_RAND_CONNECT)
locate_connected_stairs(creature_ptr, creature_ptr->current_floor_ptr, sf_ptr, creature_ptr->change_floor_mode);

exe_leave_floor(creature_ptr, sf_ptr);
Expand Down

0 comments on commit fe4124e

Please sign in to comment.