Fixes Maps not being able to force tech levels

This commit is contained in:
WolfGaming
2014-07-29 21:58:40 +00:00
parent e3d2104fe3
commit d44a5226f5

View File

@@ -40,7 +40,8 @@ namespace OpenRA.Mods.RA
public ProvidesTechPrerequisite(ProvidesTechPrerequisiteInfo info, ActorInitializer init)
{
this.info = info;
this.enabled = info.Name == init.world.LobbyInfo.GlobalSettings.TechLevel;
var tech = init.world.Map.Options.TechLevel ?? init.world.LobbyInfo.GlobalSettings.TechLevel;
this.enabled = info.Name == tech;
}
}
}