added using GIC flags "request.button.player_X.draw_player"
[rocksndiamonds.git] / src / tools.c
index 351c36e43e820d421b7502cc08592265cb351c73..5fb84526d33c99386810b2fb5ebe1cfee6006b19 100644 (file)
@@ -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;