projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed handling of fake acid for EM engine
[rocksndiamonds.git]
/
src
/
game_em
/
emerald.h
diff --git
a/src/game_em/emerald.h
b/src/game_em/emerald.h
index 26032ff428c3486bdc6681c0a4618171e887a2ac..1afbfbfc58f62850d9856741dcbd39d937b4c223 100644
(file)
--- 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
/* 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)
#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 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) */
int time_seconds; /* available time (seconds) */
int time_initial; /* available time (initial) */
int time; /* time remaining (runtime) */