/* actual position of level editor drawing area in level playfield */
static int level_xpos = -1, level_ypos = -1;
-#define IN_ED_FIELD(x,y) ((x)>=0 && (x)<ed_fieldx && (y)>=0 &&(y)<ed_fieldx)
+#define IN_ED_FIELD(x,y) ((x)>=0 && (x)<ed_fieldx && (y)>=0 &&(y)<ed_fieldy)
/* drawing elements on the three mouse buttons */
static int new_element1 = EL_MAUERWERK;
src_pixmap = pix[pixmap_nr];
drawing_gc = clip_gc[pixmap_nr];
+ src_x += cx;
+ src_y += cy;
+
dest_x = FX + x * TILEX + dx;
dest_y = FY + y * TILEY + dy;
}
else if (element != EL_SP_INFOTRON)
graphic += phase2;
-
- /*
- if (element == EL_SP_ZONK)
- {
- if (dir == MV_LEFT)
- graphic += (4 - phase4) % 4;
- else if (dir == MV_RIGHT)
- graphic += phase4;
- else
- graphic += phase2 * 2;
- }
- else if (element != EL_SP_INFOTRON)
- graphic += phase2 * (element == EL_FELSBROCKEN ? 2 : 1);
- */
-
}
else if (element == EL_SIEB_LEER || element == EL_SIEB2_LEER ||
element == EL_SIEB_VOLL || element == EL_SIEB2_VOLL)