From 39496780df60304777a5ec7abca96025f204a1db Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Sat, 2 Apr 2022 01:32:12 +0300 Subject: [PATCH 22/22] Correct player_addr_hack() function header See osdn #44196 Signed-off-by: Marko Lindqvist --- client/plrdlg_common.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/client/plrdlg_common.c b/client/plrdlg_common.c index c37b1e6b09..457f70dcb6 100644 --- a/client/plrdlg_common.c +++ b/client/plrdlg_common.c @@ -349,15 +349,14 @@ void init_player_dlg_common(void) /************************************************************************//** The only place where this is used is the player dialog. Eventually this should go the way of the dodo with everything here - moved into col_host above, but some of the older clients still - use this function directly. + moved into col_host above. This code in this function is only really needed so that the host is kept as a blank address if no one is controlling a player, but there are observers. ****************************************************************************/ const char *player_addr_hack(const struct player *pplayer) -{ +{ conn_list_iterate(pplayer->connections, pconn) { if (!pconn->observer) { return pconn->addr; @@ -365,4 +364,4 @@ const char *player_addr_hack(const struct player *pplayer) } conn_list_iterate_end; return blank_addr_str; -} +} -- 2.35.1