From 8dbfc79c9d35ad123fcd1783cf10312762cff3af Mon Sep 17 00:00:00 2001 From: Levak Borok Date: Tue, 25 Apr 2017 19:39:50 +0200 Subject: [PATCH] Fix update of player count in a room when inviting/following --- src/xmpp_wf/result/xmpp_iq_gameroom_sync.c | 26 +++++++++++----------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/xmpp_wf/result/xmpp_iq_gameroom_sync.c b/src/xmpp_wf/result/xmpp_iq_gameroom_sync.c index 43f97a8b..21b9b449 100644 --- a/src/xmpp_wf/result/xmpp_iq_gameroom_sync.c +++ b/src/xmpp_wf/result/xmpp_iq_gameroom_sync.c @@ -233,19 +233,6 @@ void gameroom_sync(const char *data) sync.mission.mode); } } - - { /* Display total new player count */ - int new_count = sync.core.players->length; - int old_count = session.gameroom.sync.core.players->length; - - if (new_count != old_count && new_count != 0) - { - xprintf("%s: %d/%d", - LANG(update_players), - new_count, - sync.custom_params.max_players); - } - } } if (ret & GR_SYNC_AUTO_START) @@ -323,6 +310,19 @@ void gameroom_sync(const char *data) NULL, NULL); } } + + { /* Display total new player count */ + int new_count = sync.core.players->length; + int old_count = session.gameroom.sync.core.players->length; + + if (new_count != old_count && new_count != 0) + { + xprintf("%s: %d/%d", + LANG(update_players), + new_count, + sync.custom_params.max_players); + } + } } gameroom_update(&session.gameroom.sync, &sync, ret);