Simple code style cleanups

This commit is contained in:
Pavel Penev
2015-07-28 04:47:47 +03:00
parent 9801d89e75
commit 7701980b76
4 changed files with 29 additions and 43 deletions

View File

@@ -20,8 +20,8 @@ namespace OpenRA.Mods.Common.Traits
public class BuildingInfluence
{
CellLayer<Actor> influence;
Map map;
readonly Map map;
readonly CellLayer<Actor> influence;
public BuildingInfluence(World world)
{
@@ -54,10 +54,7 @@ namespace OpenRA.Mods.Common.Traits
public Actor GetBuildingAt(CPos cell)
{
if (!influence.Contains(cell))
return null;
return influence[cell];
return influence.Contains(cell) ? influence[cell] : null;
}
}
}