X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Feditor.c;h=2b4c4ff28cefd684ca554f0ff406ad00afc03da5;hb=d2fe3484366d23690887c6547636cd681db22007;hp=4c592cf8c2a674ba36efba07f5ea280a1593f9b1;hpb=fe3196f07cb50ffb788c0073b82f94c26f93cfbf;p=rocksndiamonds.git diff --git a/src/editor.c b/src/editor.c index 4c592cf8..2b4c4ff2 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