projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added "const" to some string function parameters
[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 cdb9325cad4d1be58da3494c85191f42e0faa993..84d5509ba327bcfcf02dd9719c7aadaeee9d80e5 100644
(file)
--- a/
src/game_em/main_em.h
+++ b/
src/game_em/main_em.h
@@
-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