cleanup of EM engine cave size definition names
[rocksndiamonds.git] / src / game_em / emerald.h
index 5e77b8b4aec57f07887671315f7473bbc1418900..1cf3deffc07d50d5ab76af5f8b7f31234ed88c89 100644 (file)
@@ -52,8 +52,8 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 #define EM_ENGINE_USE_ADDITIONAL_ELEMENTS
 
 /* one border for Zborder elements, one border for steelwall, if needed */
-#define EM_MAX_CAVE_WIDTH              (MAX_PLAYFIELD_WIDTH  + 2 + 2)
-#define EM_MAX_CAVE_HEIGHT             (MAX_PLAYFIELD_HEIGHT + 2 + 2)
+#define CAVE_WIDTH                     (MAX_PLAYFIELD_WIDTH  + 2 + 2)
+#define CAVE_HEIGHT                    (MAX_PLAYFIELD_HEIGHT + 2 + 2)
 
 /*
   -----------------------------------------------------------------------------
@@ -700,6 +700,21 @@ struct LEVEL
   int num_ball_arrays;         /* number of ball data arrays used */
 
   int exit_x, exit_y;          /* kludge for playing player exit sound */
+
+  short cavebuf[CAVE_WIDTH][CAVE_HEIGHT];
+  short nextbuf[CAVE_WIDTH][CAVE_HEIGHT];
+  short drawbuf[CAVE_WIDTH][CAVE_HEIGHT];
+  short boombuf[CAVE_WIDTH][CAVE_HEIGHT];
+
+  short *cavecol[CAVE_WIDTH];
+  short *nextcol[CAVE_WIDTH];
+  short *drawcol[CAVE_WIDTH];
+  short *boomcol[CAVE_WIDTH];
+
+  short **cave;
+  short **next;
+  short **draw;
+  short **boom;
 };
 
 struct PLAYER