From cd2e7117917e6fda0cffd50acabc71ac4e2672ce Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Thu, 21 Aug 2003 23:07:05 +0200 Subject: [PATCH 1/1] rnd-20030821-2-src --- src/conftime.h | 2 +- src/game.c | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/conftime.h b/src/conftime.h index 0bbfa4c1..ff367cc1 100644 --- a/src/conftime.h +++ b/src/conftime.h @@ -1 +1 @@ -#define COMPILE_DATE_STRING "[2003-08-21 03:01]" +#define COMPILE_DATE_STRING "[2003-08-21 23:04]" diff --git a/src/game.c b/src/game.c index 1aef43ab..1c86acb0 100644 --- a/src/game.c +++ b/src/game.c @@ -5310,7 +5310,8 @@ static void ChangeActiveTrap(int x, int y) static void ChangeElementNowExt(int x, int y, int target_element) { -#if 0 /* !!! let the player exacpe from a suddenly unaccessible element */ +#if 1 + /* check if the new element is unaccessible for the player */ if (IS_PLAYER(x, y) && !IS_ACCESSIBLE(target_element)) { Bang(x, y); @@ -6341,6 +6342,10 @@ boolean MoveFigureOneStep(struct PlayerInfo *player, if (can_move != MF_MOVING) return can_move; + /* check if DigField() has caused relocation of the player */ + if (player->jx != jx || player->jy != jy) + return MF_NO_ACTION; + StorePlayer[jx][jy] = 0; player->last_jx = jx; player->last_jy = jy; -- 2.34.1