Fix missed allied view tech in init.
Noticed by @gameboy at
https://wildfiregames.com/forum/topic/107586-an-error-occurred/.
Introduced in c917c39a0d
.
Differential revision: https://code.wildfiregames.com/D5057
Reviewed by: @wraitii
This was SVN commit r27735.
This commit is contained in:
parent
fb065a4022
commit
f4caf15710
@ -57,7 +57,7 @@ function InitGame(settings)
|
|||||||
cmpPlayer.SetMaxPopulation(settings.PopulationCap);
|
cmpPlayer.SetMaxPopulation(settings.PopulationCap);
|
||||||
|
|
||||||
if (settings.AllyView)
|
if (settings.AllyView)
|
||||||
Engine.QueryInterface(cmpPlayer.entity, IID_TechnologyManager)?.ResearchTechnology(cmpPlayer.template.SharedLosTech);
|
Engine.QueryInterface(cmpPlayer.entity, IID_TechnologyManager)?.ResearchTechnology(Engine.QueryInterface(cmpPlayer.entity, IID_Diplomacy).template.SharedLosTech);
|
||||||
}
|
}
|
||||||
if (settings.WorldPopulationCap)
|
if (settings.WorldPopulationCap)
|
||||||
Engine.QueryInterface(SYSTEM_ENTITY, IID_PlayerManager).SetMaxWorldPopulation(settings.WorldPopulationCap);
|
Engine.QueryInterface(SYSTEM_ENTITY, IID_PlayerManager).SetMaxWorldPopulation(settings.WorldPopulationCap);
|
||||||
|
Loading…
Reference in New Issue
Block a user