From: Holger Schemel Date: Fri, 6 Jan 2023 22:16:38 +0000 (+0100) Subject: added using GIC flags "request.button.player_X.draw_player" X-Git-Tag: 4.3.5.0~51 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=c90edfea149e0b1b8df5db7dca0c2a9e3963879b;p=rocksndiamonds.git added using GIC flags "request.button.player_X.draw_player" This "graphicsinfo.conf" flag was completely ignored until now. It can be used to control if player graphics should be drawn on top of the four request buttons to select the network player in the setup menu, or if only the buttons (without additional player graphics) should be used (which only makes sense if custom player request buttons are used with individual player graphics). The default value is "true". --- 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;