X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Ftools.c;h=5fb84526d33c99386810b2fb5ebe1cfee6006b19;hb=80145c6ee7475f56029a6bb1bd6c46995c965f1f;hp=351c36e43e820d421b7502cc08592265cb351c73;hpb=4de7503bef2712180fe8c86a89a0a7c281a5fe96;p=rocksndiamonds.git diff --git a/src/tools.c b/src/tools.c index 351c36e4..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;