X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Feditor.c;h=c760e12da1a79a9e6a159934793e56211fd77568;hb=e946a4f25cf18a083043d05beca2887ad16d7b53;hp=a1fa7ba138c0271344e878b16f3b193e01aaf04a;hpb=92204d79d159df0be4bd05c4b4e4dabbcaefe805;p=rocksndiamonds.git diff --git a/src/editor.c b/src/editor.c index a1fa7ba1..c760e12d 100644 --- a/src/editor.c +++ b/src/editor.c @@ -4343,7 +4343,6 @@ void HandleLevelEditorIdle() { static unsigned long action_delay = 0; unsigned long action_delay_value = GameFrameDelay; - int graphic = el2img(properties_element); int xpos = 1, ypos = 2; if (edit_mode != ED_MODE_PROPERTIES) @@ -4352,20 +4351,10 @@ void HandleLevelEditorIdle() if (!DelayReached(&action_delay, action_delay_value)) return; -#if 1 DrawGraphicAnimationExt(drawto, SX + xpos * TILEX, SY + ypos * TILEY + MINI_TILEY / 2, - graphic, -1, NO_MASKING); - -#else - DrawGraphicAnimationExt(drawto, - SX + xpos * TILEX, - SY + ypos * TILEY + MINI_TILEY / 2, - el_dir_act2img(properties_element, - MV_NO_MOVING, - ...), -1, NO_MASKING); -#endif + el2img(properties_element), -1, NO_MASKING); MarkTileDirty(xpos, ypos); MarkTileDirty(xpos, ypos + 1);