Add a lint check for LockFaction on mission players.

This commit is contained in:
Paul Chote
2020-02-16 12:01:33 +00:00
committed by reaperrr
parent 4ec258cbdd
commit 09a019f9c6

View File

@@ -46,6 +46,11 @@ namespace OpenRA.Mods.Common.Lint
if (player.Playable)
emitError("The player {0} owning the world can't be playable.".F(player.Name));
}
else if (map.Visibility == MapVisibility.MissionSelector && player.Playable && !player.LockFaction)
{
// Missions must lock the faction of the player to force the server to override the default Random faction
emitError("The player {0} must specify LockFaction: True.".F(player.Name));
}
}
if (!worldOwnerFound)