From: Holger Schemel Date: Thu, 28 May 2020 17:00:25 +0000 (+0200) Subject: added playing door/gate sound when wrapping-around in EM engine X-Git-Tag: 4.2.0.0~24 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=cdae6fb61376731b2ab3fa6082971edfff00ec75;p=rocksndiamonds.git added playing door/gate sound when wrapping-around in EM engine --- diff --git a/src/game_em/logic.c b/src/game_em/logic.c index 6270550d..29006644 100644 --- a/src/game_em/logic.c +++ b/src/game_em/logic.c @@ -1279,6 +1279,11 @@ static boolean player_digfield(struct PLAYER *ply, int dx, int dy) } } + /* check for wrap-around movement */ + if (ply->x < lev.left || + ply->x > lev.right - 1) + play_element_sound(oldx, oldy, SOUND_door, Xdoor_1); + return result; }