From: Holger Schemel Date: Sun, 19 Jan 2020 15:41:00 +0000 (+0100) Subject: added "pause" element to game elements in EM engine X-Git-Tag: 4.2.0.0~187 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=a4cde04ae92e7f4fb05307b04bd541caa1eeec7e;p=rocksndiamonds.git added "pause" element to game elements in EM engine --- diff --git a/src/game_em/emerald.h b/src/game_em/emerald.h index e07ff1d1..5e77b8b4 100644 --- a/src/game_em/emerald.h +++ b/src/game_em/emerald.h @@ -438,6 +438,8 @@ enum Xexit_2, Xexit_3, + Xpause, + Xwall_1, Xwall_2, Xwall_3, diff --git a/src/game_em/synchro_2.c b/src/game_em/synchro_2.c index 25805d16..12997fd7 100644 --- a/src/game_em/synchro_2.c +++ b/src/game_em/synchro_2.c @@ -4566,6 +4566,12 @@ void synchro_2(void) /* --------------------------------------------------------------------- */ + case Xpause: + Next[y][x] = Xblank; + goto loop; + + /* --------------------------------------------------------------------- */ + case Xdynamite_1: play_element_sound(x, y, SOUND_tick, Xdynamite_1); Next[y][x] = Xdynamite_2; diff --git a/src/tools.c b/src/tools.c index 0d4f45d8..0e8366d1 100644 --- a/src/tools.c +++ b/src/tools.c @@ -7085,6 +7085,11 @@ em_object_mapping_list[] = EL_EM_EXIT_OPEN, -1, -1 }, + { + Xpause, FALSE, FALSE, + EL_EMPTY, -1, -1 + }, + { Xwall_1, TRUE, FALSE, EL_WALL, -1, -1