projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed rotation graphics of DF style mirrors for MM engine
[rocksndiamonds.git]
/
src
/
tools.c
diff --git
a/src/tools.c
b/src/tools.c
index 7f448fdfc25df57f38c753c924afafc00d0e2c90..5fb84526d33c99386810b2fb5ebe1cfee6006b19 100644
(file)
--- a/
src/tools.c
+++ b/
src/tools.c
@@
-5896,7
+5896,8
@@
void CreateToolButtons(void)
}
}
}
}
- if (id >= TOOL_CTRL_ID_PLAYER_1 && id <= TOOL_CTRL_ID_PLAYER_4)
+ if (id >= TOOL_CTRL_ID_PLAYER_1 && id <= TOOL_CTRL_ID_PLAYER_4 &&
+ pos->draw_player)
{
int player_nr = id - TOOL_CTRL_ID_PLAYER_1;
{
int player_nr = id - TOOL_CTRL_ID_PLAYER_1;
@@
-8323,6
+8324,11
@@
int el2img_mm(int element_mm)
return el2img(map_element_MM_to_RND(element_mm));
}
return el2img(map_element_MM_to_RND(element_mm));
}
+int el_act2img_mm(int element_mm, int action)
+{
+ return el_act2img(map_element_MM_to_RND(element_mm), action);
+}
+
int el_act_dir2img(int element, int action, int direction)
{
element = GFX_ELEMENT(element);
int el_act_dir2img(int element, int action, int direction)
{
element = GFX_ELEMENT(element);