X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgame_em%2Fmain_em.h;h=0870b040fcd076a9a8722015f17b724dc5827ede;hb=bddf6c22480ed7f7fca83b7d6c4f9dc10d19f57a;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..0870b040 100644 --- a/src/game_em/main_em.h +++ b/src/game_em/main_em.h @@ -1,3 +1,14 @@ +// ============================================================================ +// Rocks'n'Diamonds - McDuffin Strikes Back! +// ---------------------------------------------------------------------------- +// (c) 1995-2024 by Artsoft Entertainment +// Holger Schemel +// info@artsoft.org +// https://www.artsoft.org/ +// ---------------------------------------------------------------------------- +// main_em.h +// ============================================================================ + #ifndef MAIN_EM_H #define MAIN_EM_H @@ -5,14 +16,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 +87,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