projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5d537d6
)
fixed BD style element graphics without direction
author
Holger Schemel
<holger.schemel@virtion.de>
Mon, 7 Oct 2024 21:27:48 +0000
(23:27 +0200)
committer
Holger Schemel
<holger.schemel@virtion.de>
Mon, 7 Oct 2024 21:27:48 +0000
(23:27 +0200)
src/tools.c
patch
|
blob
|
history
diff --git
a/src/tools.c
b/src/tools.c
index d33e1b1be72e585a9c958aa031571816f33d5a0c..4e5c9cd6d252c699d2d66f9488f1a310724b33ed 100644
(file)
--- 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;