1
0
forked from 0ad/0ad

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:
Freagarach 2023-06-23 12:51:03 +00:00
parent fb065a4022
commit f4caf15710

View File

@ -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);