From c088889e7c468aa4f6962d1056a3e866aca6ab09 Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Fri, 22 Oct 2010 08:10:56 +0000 Subject: [PATCH] - bugfix to retain proper team color based on actual slot position, regardless of how many closed slots there are. Yay, now team placement and color works properly --- source/glest_game/world/world.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/glest_game/world/world.cpp b/source/glest_game/world/world.cpp index a94cecaf..936e5149 100644 --- a/source/glest_game/world/world.cpp +++ b/source/glest_game/world/world.cpp @@ -866,7 +866,7 @@ void World::initFactionTypes(GameSettings *gs){ for(int i=0; i < factions.size(); ++i) { const FactionType *ft= techTree->getType(gs->getFactionTypeName(i)); factions[i].init( - ft, gs->getFactionControl(i), techTree, game, i, gs->getTeam(i), + ft, gs->getFactionControl(i), techTree, game, gs->getStartLocationIndex(i), gs->getTeam(i), gs->getStartLocationIndex(i), i==thisFactionIndex, gs->getDefaultResources()); stats.setTeam(i, gs->getTeam(i));