added cave buffer offsets to level structure in EM engine
[rocksndiamonds.git] / src / game_em / emerald.h
index 26032ff428c3486bdc6681c0a4618171e887a2ac..d83a182da26d8fce0cc41905b2c73e9e22e6be7d 100644 (file)
@@ -56,8 +56,8 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 #define CAVE_HEIGHT                    (MAX_PLAYFIELD_HEIGHT + 2)
 
 /* with border for Zborder elements (surrounding the visible playfield) */
-#define CAVE_BUFFER_XOFFSET            1
-#define CAVE_BUFFER_YOFFSET            1
+#define CAVE_BUFFER_XOFFSET            4
+#define CAVE_BUFFER_YOFFSET            2
 #define CAVE_BUFFER_WIDTH              (CAVE_WIDTH  + 2 * CAVE_BUFFER_XOFFSET)
 #define CAVE_BUFFER_HEIGHT             (CAVE_HEIGHT + 2 * CAVE_BUFFER_YOFFSET)
 
@@ -637,6 +637,11 @@ struct LEVEL
   int width;                   /* playfield width */
   int height;                  /* playfield height */
 
+  int left;                    /* playfield left edge */
+  int top;                     /* playfield top edge */
+  int right;                   /* playfield right edge */
+  int bottom;                  /* playfield bottom edge */
+
   int time_seconds;            /* available time (seconds) */
   int time_initial;            /* available time (initial) */
   int time;                    /* time remaining (runtime) */