From 7050de1bd7967aacd7e7ea6983e6dfe4d229f68e Mon Sep 17 00:00:00 2001 From: nothere Date: Fri, 9 May 2003 12:31:18 +0000 Subject: [PATCH] =?utf8?q?=E3=83=88=E3=83=A9=E3=83=83=E3=83=97=E3=83=BB?= =?utf8?q?=E3=83=89=E3=82=A2=E3=81=AB=E8=90=BD=E3=81=A1=E3=81=9F=E9=9A=9B?= =?utf8?q?=E3=81=AB=E3=83=97=E3=83=AC=E3=82=A4=E3=83=A4=E3=83=BC=E3=81=8C?= =?utf8?q?=E8=BF=91=E3=81=8F=E3=81=AE=E9=9A=8E=E6=AE=B5=E3=81=AB=E3=83=86?= =?utf8?q?=E3=83=AC=E3=83=9D=E3=83=BC=E3=83=88=E3=81=97=E3=81=9F=E3=82=88?= =?utf8?q?=E3=81=86=E3=81=AB=E8=A6=8B=E3=81=88=E3=82=8B=E3=83=90=E3=82=B0?= =?utf8?q?=E3=82=92=E4=BF=AE=E6=AD=A3.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/floors.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/floors.c b/src/floors.c index b7e8de029..a0db84d5f 100644 --- a/src/floors.c +++ b/src/floors.c @@ -651,6 +651,7 @@ void leave_floor(void) saved_floor_type *sf_ptr; int quest_r_idx = 0; int i; + int oy = py, ox = px; /* Preserve pets and prepare to take these to next floor */ preserve_pet(); @@ -794,7 +795,7 @@ void leave_floor(void) { /* Choose random one */ i = randint0(num); - + /* Point stair location */ py = y_table[i]; px = x_table[i]; @@ -912,12 +913,19 @@ void leave_floor(void) /* If you can return, you need to save previous floor */ if (!(change_floor_mode & (CFM_NO_RETURN | CFM_CLEAR_ALL))) { + int ty = py; + int tx = px; + /* Get out of the my way! */ get_out_monster(); /* Record the last visit turn of current floor */ sf_ptr->last_visit = turn; + /* Hack -- Before visual update */ + py = oy; + px = ox; + /* Forget the lite */ forget_lite(); @@ -927,6 +935,10 @@ void leave_floor(void) /* Forget the view */ clear_mon_lite(); + /* Hack -- After visual update */ + py = ty; + px = tx; + /* Save current floor */ if (!save_floor(sf_ptr, 0)) { -- 2.11.0