X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Fmain.h;h=a9fba3709e76aec839bd4bda48b0a9aa4a87bfab;hp=bff64380350d0e82935b5625cf491e35df4710c1;hb=7b31a77eec53ed2b96d5924a743b0706c9e4b11c;hpb=1478ab1f979ae33fd900e5148c5d00dcba5ad402 diff --git a/src/main.h b/src/main.h index bff64380..a9fba370 100644 --- a/src/main.h +++ b/src/main.h @@ -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)