From: Holger Schemel Date: Sat, 27 Apr 2024 11:42:59 +0000 (+0200) Subject: fixed element graphic on properties page in level editor X-Git-Tag: 4.4.0.0-test-1~31 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=a17bb502b568bb4ab585b9aff45b571ac724d52e;p=rocksndiamonds.git fixed element graphic on properties page in level editor --- diff --git a/src/editor.c b/src/editor.c index f21d086e..34bcb2f9 100644 --- a/src/editor.c +++ b/src/editor.c @@ -13078,9 +13078,18 @@ static void DrawEditorElementAnimation(int x, int y) int graphic; int frame; - getEditorGraphicAndFrame(properties_element, &graphic, &frame, FALSE); + if (IS_BD_RUNTIME_ELEMENT(properties_element)) + { + getEditorGraphicAndFrame(properties_element, &graphic, &frame, TRUE); + + DrawFixedGraphicExt(drawto, x, y, graphic, frame); + } + else + { + getEditorGraphicAndFrame(properties_element, &graphic, &frame, FALSE); - DrawFixedGraphicAnimationExt(drawto, x, y, graphic, frame, NO_MASKING); + DrawFixedGraphicAnimationExt(drawto, x, y, graphic, frame, NO_MASKING); + } } static void DrawEditorElementName(int x, int y, int font_nr)