mirror of
https://github.com/glest/glest-source.git
synced 2025-08-29 10:49:48 +02:00
- 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
This commit is contained in:
@@ -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));
|
||||
|
Reference in New Issue
Block a user