From: Holger Schemel Date: Sat, 17 Feb 2007 16:44:29 +0000 (+0100) Subject: rnd-20070217-1-src X-Git-Tag: 3.2.4^2~91 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=c5638bbc5bd4a2b412cd86206a69c01252448072;p=rocksndiamonds.git rnd-20070217-1-src --- diff --git a/src/conftime.h b/src/conftime.h index 4add64c5..442791da 100644 --- a/src/conftime.h +++ b/src/conftime.h @@ -1 +1 @@ -#define COMPILE_DATE_STRING "2007-02-14 23:53" +#define COMPILE_DATE_STRING "2007-02-17 17:39" diff --git a/src/editor.c b/src/editor.c index 1ec48e18..3030dc09 100644 --- a/src/editor.c +++ b/src/editor.c @@ -3119,7 +3119,11 @@ static int ed_fieldx = MAX_ED_FIELDX - 1, ed_fieldy = MAX_ED_FIELDY - 1; /* actual position of level editor drawing area in level playfield */ static int level_xpos = -1, level_ypos = -1; +#if 1 +#define IN_ED_FIELD(x,y) IN_FIELD(x, y, ed_fieldx, ed_fieldy) +#else #define IN_ED_FIELD(x,y) ((x)>=0 && (x)=0 &&(y)= 0 && x - level_xpos < ed_fieldx && y - level_ypos >= 0 && y - level_ypos < ed_fieldy) - DrawMiniElement(x - level_xpos, y - level_ypos, - EL_EMPTY); + DrawMiniElement(x - level_xpos, y - level_ypos, EL_EMPTY); +#endif +#endif } } } } +#if 1 + SetElement(lx, ly, new_element); +#else Feld[lx][ly] = new_element; DrawMiniElement(sx, sy, new_element); +#endif } } else