From: Holger Schemel Date: Mon, 7 Oct 2024 21:27:48 +0000 (+0200) Subject: fixed BD style element graphics without direction X-Git-Tag: 4.4.0.0-test-4~148 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=b99ce26411b602eb2a7f4e3cd3d1813847e198aa;p=rocksndiamonds.git fixed BD style element graphics without direction --- 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;