X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fmain.h;h=11588dd9aa019b29121e5ce994d18e368713dff3;hb=667288cc3f60989bfc84ac50bb69dae0c7bb5b22;hp=16ff5403894d2771b5e3dc7726a0f5e7c3a4c47f;hpb=1146572677fd6858df5fc1fabfd7f7294bdefed7;p=rocksndiamonds.git diff --git a/src/main.h b/src/main.h index 16ff5403..11588dd9 100644 --- a/src/main.h +++ b/src/main.h @@ -17,9 +17,9 @@ #include #include #include -#include #include #include +#include #ifndef MSDOS #define XK_MISCELLANY @@ -33,18 +33,23 @@ #include #ifdef XPM_INCLUDE_FILE +#define USE_XPM_LIBRARY #include XPM_INCLUDE_FILE #endif -#else +#else /* MSDOS */ #include "msdos.h" -#endif /* #ifndef MSDOS */ +#endif /* MSDOS */ + +#ifdef DEBUG +#define DEBUG_TIMING 0 +#endif typedef unsigned char boolean; typedef unsigned char byte; #ifndef FALSE -#define FALSE 0 -#define TRUE (!FALSE) +#define FALSE 0 +#define TRUE (!FALSE) #endif #define WIN_XSIZE 672 @@ -52,10 +57,10 @@ typedef unsigned char byte; #ifndef MSDOS #define WIN_XPOS 0 #define WIN_YPOS 0 -#else +#else /* MSDOS */ #define WIN_XPOS ((XRES - WIN_XSIZE) / 2) #define WIN_YPOS ((YRES - WIN_YSIZE) / 2) -#endif +#endif /* MSDOS */ #define SCR_FIELDX 17 #define SCR_FIELDY 17 #define MAX_BUF_XSIZE (SCR_FIELDX + 2) @@ -82,6 +87,7 @@ typedef unsigned char byte; #ifndef SIGN #define SIGN(a) ((a) < 0 ? -1 : ((a)>0 ? 1 : 0)) #endif + #define SCREENX(a) ((a) - scroll_x) #define SCREENY(a) ((a) - scroll_y) #define LEVELX(a) ((a) + scroll_x) @@ -90,32 +96,34 @@ typedef unsigned char byte; #define IN_SCR_FIELD(x,y) ((x)>=BX1 && (x)<=BX2 && (y)>=BY1 &&(y)<=BY2) #define IN_LEV_FIELD(x,y) ((x)>=0 && (x)=0 &&(y)