X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fgame_em%2Femerald.h;h=1afbfbfc58f62850d9856741dcbd39d937b4c223;hb=c734235e0757e54dfdf6645d07a76c2a0bc591ba;hp=26032ff428c3486bdc6681c0a4618171e887a2ac;hpb=dd11b3af00799f1dcd34481281bb219216ac9a4b;p=rocksndiamonds.git diff --git a/src/game_em/emerald.h b/src/game_em/emerald.h index 26032ff4..1afbfbfc 100644 --- a/src/game_em/emerald.h +++ b/src/game_em/emerald.h @@ -51,13 +51,12 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. /* define these to use additional elements */ #define EM_ENGINE_USE_ADDITIONAL_ELEMENTS -/* with border for steelwall, if needed (when converted from R'n'D level) */ -#define CAVE_WIDTH (MAX_PLAYFIELD_WIDTH + 2) -#define CAVE_HEIGHT (MAX_PLAYFIELD_HEIGHT + 2) +#define CAVE_WIDTH MAX_PLAYFIELD_WIDTH +#define CAVE_HEIGHT MAX_PLAYFIELD_HEIGHT -/* with border for Zborder elements (surrounding the visible playfield) */ -#define CAVE_BUFFER_XOFFSET 1 -#define CAVE_BUFFER_YOFFSET 1 +/* additional padding for Zborder elements and linked cave buffer columns */ +#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 +636,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) */