From 1c52f281854aed8228185acb8cb8d5c1838c1b92 Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Thu, 19 Jul 2012 23:21:55 +0000 Subject: [PATCH] - change team # in end game stats for team switching --- source/glest_game/game/commander.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/glest_game/game/commander.cpp b/source/glest_game/game/commander.cpp index 06906d4e..163cbf43 100644 --- a/source/glest_game/game/commander.cpp +++ b/source/glest_game/game/commander.cpp @@ -661,6 +661,7 @@ void Commander::giveNetworkCommand(NetworkCommand* networkCommand) const { faction->setTeam(newTeam); GameSettings *settings = world->getGameSettingsPtr(); settings->setTeam(factionIndex,newTeam); + world->getStats()->setTeam(factionIndex, newTeam); if(factionIndex == world->getThisFactionIndex()) { world->setThisTeamIndex(newTeam); @@ -753,6 +754,7 @@ void Commander::giveNetworkCommand(NetworkCommand* networkCommand) const { faction->setTeam(vote->newTeam); GameSettings *settings = world->getGameSettingsPtr(); settings->setTeam(factionIndex,vote->newTeam); + world->getStats()->setTeam(factionIndex, vote->newTeam); if(factionIndex == world->getThisFactionIndex()) { world->setThisTeamIndex(vote->newTeam);