projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
version number set to 4.3.4.1
[rocksndiamonds.git]
/
src
/
game_em
/
main_em.h
diff --git
a/src/game_em/main_em.h
b/src/game_em/main_em.h
index ab135ec00b2f39826b98db474e4e60648d795c75..84d5509ba327bcfcf02dd9719c7aadaeee9d80e5 100644
(file)
--- a/
src/game_em/main_em.h
+++ b/
src/game_em/main_em.h
@@
-48,8
+48,8
@@
extern int TILESIZE_VAR;
extern int SCR_FIELDX, SCR_FIELDY;
extern int SCR_FIELDX, SCR_FIELDY;
-#define MAX_BUF_XSIZE (SCR_FIELDX + 2)
-#define MAX_BUF_YSIZE (SCR_FIELDY + 2)
+#define MAX_BUF_XSIZE (SCR_FIELDX + 2
* CAVE_BUFFER_XOFFSET
)
+#define MAX_BUF_YSIZE (SCR_FIELDY + 2
* CAVE_BUFFER_YOFFSET
)
/* often used screen positions */
/* often used screen positions */
@@
-76,6
+76,9
@@
extern int SX, SY;
#define DISPLAY_TIME(x) ROUNDED_DIVIDE(x, FRAMES_PER_SECOND)
#define DISPLAY_TIME(x) ROUNDED_DIVIDE(x, FRAMES_PER_SECOND)
+#define CAVE_POS_X(x) ((x) - lev.left)
+#define CAVE_POS_Y(x) ((x) - lev.top)
+
// ----------------------------------------------------------------------------
// data structure definitions
// ----------------------------------------------------------------------------
// data structure definitions