X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgame_em%2Fmain_em.h;h=350bc38be584a5b444bc7c59fdc1c3592fe8f172;hb=9cb7b346aac829206d263209c41daadc1fde7c04;hp=cdb9325cad4d1be58da3494c85191f42e0faa993;hpb=df57066a525140f21a8b712e7276cfba8c87a218;p=rocksndiamonds.git diff --git a/src/game_em/main_em.h b/src/game_em/main_em.h index cdb9325c..350bc38b 100644 --- a/src/game_em/main_em.h +++ b/src/game_em/main_em.h @@ -5,14 +5,14 @@ // external functions and definitions imported from main program to game_em // ============================================================================ -#include "../engines.h" +#include "import_em.h" // ============================================================================ // functions and definitions that are exported from game_em to main program // ============================================================================ -#include "export.h" +#include "export_em.h" // ============================================================================ @@ -76,6 +76,9 @@ extern int SX, SY; #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