fixed BD style element graphics without direction
authorHolger Schemel <holger.schemel@virtion.de>
Mon, 7 Oct 2024 21:27:48 +0000 (23:27 +0200)
committerHolger Schemel <holger.schemel@virtion.de>
Mon, 7 Oct 2024 21:27:48 +0000 (23:27 +0200)
src/tools.c

index d33e1b1be72e585a9c958aa031571816f33d5a0c..4e5c9cd6d252c699d2d66f9488f1a310724b33ed 100644 (file)
@@ -11095,8 +11095,9 @@ void InitGraphicInfo_BD(void)
     {
       int effective_element = element;
       int effective_action = action;
-      int graphic = (el_act_dir2img(effective_element, effective_action,
-                                   direction));
+      int graphic = (direction == MV_NONE ?
+                     el_act2img(effective_element, effective_action) :
+                     el_act_dir2img(effective_element, effective_action, direction));
       struct GraphicInfo *g = &graphic_info[graphic];
       struct GraphicInfo_BD *g_bd = &graphic_info_bd_object[i][j];
       Bitmap *src_bitmap;