make IsCloseEnoughToBase function virtual

This commit is contained in:
evgeniysergeev
2017-05-28 23:23:49 +03:00
committed by abcdefg30
parent aecfff905d
commit c06df1ed21

View File

@@ -66,7 +66,7 @@ namespace OpenRA.Mods.Common.Traits
return null; return null;
} }
public bool IsCloseEnoughToBase(World world, Player p, string buildingName, CPos topLeft) public virtual bool IsCloseEnoughToBase(World world, Player p, string buildingName, CPos topLeft)
{ {
if (p.PlayerActor.Trait<DeveloperMode>().BuildAnywhere) if (p.PlayerActor.Trait<DeveloperMode>().BuildAnywhere)
return true; return true;