X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Flibgame%2Fsystem.h;h=c645089b6a3e91d49cce74042daa62280a2ee43d;hp=7f8d23416dafce3e8407ada7911844ae5787b2fc;hb=3e10387c490e2db8997d6e909d7d13d71fe876e3;hpb=fd045bdb92ad7e3523ba850c13a7ef6533d0e726 diff --git a/src/libgame/system.h b/src/libgame/system.h index 7f8d2341..c645089b 100644 --- a/src/libgame/system.h +++ b/src/libgame/system.h @@ -596,10 +596,15 @@ /* macros for version handling */ -#define VERSION_MAJOR(x) ((x) / 1000000) -#define VERSION_MINOR(x) (((x) % 1000000) / 10000) -#define VERSION_PATCH(x) (((x) % 10000) / 100) -#define VERSION_BUILD(x) ((x) % 100) +#define VERSION_PART_1(x) ((x) / 1000000) +#define VERSION_PART_2(x) (((x) % 1000000) / 10000) +#define VERSION_PART_3(x) (((x) % 10000) / 100) +#define VERSION_PART_4(x) ((x) % 100) + +#define VERSION_SUPER(x) VERSION_PART_1(x) +#define VERSION_MAJOR(x) VERSION_PART_2(x) +#define VERSION_MINOR(x) VERSION_PART_3(x) +#define VERSION_PATCH(x) VERSION_PART_4(x) #define VERSION_IDENT(a,b,c,d) ((a) * 1000000 + (b) * 10000 + (c) * 100 + (d)) @@ -780,10 +785,10 @@ struct ProgramInfo FILE *log_file[NUM_LOGS]; /* log file handles for out/err files */ FILE *log_file_default[NUM_LOGS]; /* default log file handles (out/err) */ + int version_super; int version_major; int version_minor; int version_patch; - int version_build; int version_ident; char *version_string; @@ -963,6 +968,8 @@ struct TileCursorInfo int xpos, ypos; /* tile cursor level playfield position */ int x, y; /* tile cursor current screen position */ int target_x, target_y; /* tile cursor target screen position */ + + int sx, sy; /* tile cursor screen start position */ }; struct OverlayInfo @@ -1534,6 +1541,7 @@ void SetTileCursorEnabled(boolean); void SetTileCursorActive(boolean); void SetTileCursorTargetXY(int, int); void SetTileCursorXY(int, int); +void SetTileCursorSXSY(int, int); void SetOverlayEnabled(boolean); void SetOverlayActive(boolean); boolean GetOverlayActive();