added "pause" element to game elements in EM engine
authorHolger Schemel <info@artsoft.org>
Sun, 19 Jan 2020 15:41:00 +0000 (16:41 +0100)
committerHolger Schemel <info@artsoft.org>
Tue, 19 May 2020 16:12:55 +0000 (18:12 +0200)
src/game_em/emerald.h
src/game_em/synchro_2.c
src/tools.c

index e07ff1d1feeeb0a8dda0759326b8f71e004fe6ef..5e77b8b4aec57f07887671315f7473bbc1418900 100644 (file)
@@ -438,6 +438,8 @@ enum
   Xexit_2,
   Xexit_3,
 
+  Xpause,
+
   Xwall_1,
   Xwall_2,
   Xwall_3,
index 25805d16df8f077d934121c344bcb23e56930972..12997fd7e5d7e3f8d3291f5fdab83ce40f9382ca 100644 (file)
@@ -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;
index 0d4f45d868086ccbcfc26e8c2ba7a15d5695960c..0e8366d1cfc6bbaf4c887a24821cc527fce3db88 100644 (file)
@@ -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