X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Ftools.c;h=5fb84526d33c99386810b2fb5ebe1cfee6006b19;hb=80145c6ee7475f56029a6bb1bd6c46995c965f1f;hp=7f448fdfc25df57f38c753c924afafc00d0e2c90;hpb=10f312b2236afd0bd063d1dab380064d8431a850;p=rocksndiamonds.git diff --git a/src/tools.c b/src/tools.c index 7f448fdf..5fb84526 100644 --- 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; @@ -8323,6 +8324,11 @@ int el2img_mm(int 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);