From b99ce26411b602eb2a7f4e3cd3d1813847e198aa Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Mon, 7 Oct 2024 23:27:48 +0200 Subject: [PATCH] fixed BD style element graphics without direction --- src/tools.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/tools.c b/src/tools.c index d33e1b1b..4e5c9cd6 100644 --- a/src/tools.c +++ b/src/tools.c @@ -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; -- 2.34.1