X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgame_bd%2Fmain_bd.h;h=8511f2e04386f1639c14fa3dab218e684c40f9b6;hb=4ed68b54ed9bed72d87eac4dd7b117fc4b8022d6;hp=5ae28e200c9d89ebc84af197e2790f77bafa4ac4;hpb=b377a0cc25c12922edb0e92050a552b86e5f7f3a;p=rocksndiamonds.git diff --git a/src/game_bd/main_bd.h b/src/game_bd/main_bd.h index 5ae28e20..8511f2e0 100644 --- a/src/game_bd/main_bd.h +++ b/src/game_bd/main_bd.h @@ -39,6 +39,7 @@ #include "bd_gameplay.h" #include "bd_c64import.h" #include "bd_graphics.h" +#include "bd_colors.h" #include "bd_random.h" #include "bd_sound.h" @@ -47,7 +48,7 @@ // constant definitions // ---------------------------------------------------------------------------- -/* screen sizes and positions for BD engine */ +// screen sizes and positions for BD engine #define TILESIZE 32 @@ -58,13 +59,24 @@ extern int TILESIZE_VAR; extern int SCR_FIELDX, SCR_FIELDY; -/* often used screen positions */ +// often used screen positions extern int SX, SY; #define SXSIZE (SCR_FIELDX * TILEX) #define SYSIZE (SCR_FIELDY * TILEY) +// compatibility macros + +#define gettext(String) (String) +#define N_(String) (String) +#define _(String) (String) + +#define STRUCT_MEMBER_P(struct_p, struct_offset) \ + ((void *) ((byte *) (struct_p) + (long) (struct_offset))) +#define STRUCT_MEMBER(member_type, struct_p, struct_offset) \ + (*(member_type*) STRUCT_MEMBER_P ((struct_p), (struct_offset))) + // ---------------------------------------------------------------------------- // data structure definitions