X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Fmain.h;h=f1b8671c7b9b1a5e292fefdade0936b3dc72fba0;hp=bff64380350d0e82935b5625cf491e35df4710c1;hb=e5c5bf5c4a76a04f9bf64e92227bf2ef969fd25c;hpb=1478ab1f979ae33fd900e5148c5d00dcba5ad402 diff --git a/src/main.h b/src/main.h index bff64380..f1b8671c 100644 --- a/src/main.h +++ b/src/main.h @@ -1,13 +1,12 @@ /*********************************************************** * Rocks'n'Diamonds -- McDuffin Strikes Back! * *----------------------------------------------------------* -* ©1995 Artsoft Development * -* Holger Schemel * -* 33659 Bielefeld-Senne * -* Telefon: (0521) 493245 * -* eMail: aeglos@valinor.owl.de * -* aeglos@uni-paderborn.de * -* q99492@pbhrzx.uni-paderborn.de * +* (c) 1995-98 Artsoft Entertainment * +* Holger Schemel * +* Oststrasse 11a * +* 33604 Bielefeld * +* phone: ++49 +521 290471 * +* email: aeglos@valinor.owl.de * *----------------------------------------------------------* * main.h * ***********************************************************/ @@ -15,6 +14,13 @@ #ifndef MAIN_H #define MAIN_H +#include +#include +#include +#include +#include +#include + #ifndef MSDOS #define XK_MISCELLANY #define XK_LATIN1 @@ -33,14 +39,8 @@ #include "msdos.h" #endif /* #ifndef MSDOS */ -#include -#include -#include -#include -#include -#include - -typedef int BOOL; +typedef unsigned char boolean; +typedef unsigned char byte; #ifndef FALSE #define FALSE 0 @@ -86,6 +86,7 @@ typedef int BOOL; #define SCREENY(a) ((a) - scroll_y) #define LEVELX(a) ((a) + scroll_x) #define LEVELY(a) ((a) + scroll_y) +#define IN_VIS_FIELD(x,y) ((x)>=0 && (x)=0 &&(y)=BX1 && (x)<=BX2 && (y)>=BY1 &&(y)<=BY2) #define IN_LEV_FIELD(x,y) ((x)>=0 && (x)=0 &&(y)