StyleCop
This commit is contained in:
@@ -173,8 +173,8 @@ namespace OpenRA
|
|||||||
return fn();
|
return fn();
|
||||||
|
|
||||||
var shouldCheckSync = Game.Settings.Debug.SanityCheckUnsyncedCode;
|
var shouldCheckSync = Game.Settings.Debug.SanityCheckUnsyncedCode;
|
||||||
int sync = shouldCheckSync ? world.SyncHash() : 0;
|
var sync = shouldCheckSync ? world.SyncHash() : 0;
|
||||||
bool prevInUnsyncedCode = inUnsyncedCode;
|
var prevInUnsyncedCode = inUnsyncedCode;
|
||||||
inUnsyncedCode = true;
|
inUnsyncedCode = true;
|
||||||
|
|
||||||
try
|
try
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#region Copyright & License Information
|
#region Copyright & License Information
|
||||||
/*
|
/*
|
||||||
* Copyright 2007-2011 The OpenRA Developers (see AUTHORS)
|
* Copyright 2007-2014 The OpenRA Developers (see AUTHORS)
|
||||||
* This file is part of OpenRA, which is free software. It is made
|
* This file is part of OpenRA, which is free software. It is made
|
||||||
* available to you under the terms of the GNU General Public License
|
* available to you under the terms of the GNU General Public License
|
||||||
* as published by the Free Software Foundation. For more information,
|
* as published by the Free Software Foundation. For more information,
|
||||||
|
|||||||
@@ -209,8 +209,8 @@ namespace OpenRA.Widgets
|
|||||||
substitutions.Add("PARENT_LEFT", parentBounds.Left);
|
substitutions.Add("PARENT_LEFT", parentBounds.Left);
|
||||||
substitutions.Add("PARENT_TOP", parentBounds.Top);
|
substitutions.Add("PARENT_TOP", parentBounds.Top);
|
||||||
substitutions.Add("PARENT_BOTTOM", parentBounds.Height);
|
substitutions.Add("PARENT_BOTTOM", parentBounds.Height);
|
||||||
int width = Evaluator.Evaluate(Width, substitutions);
|
var width = Evaluator.Evaluate(Width, substitutions);
|
||||||
int height = Evaluator.Evaluate(Height, substitutions);
|
var height = Evaluator.Evaluate(Height, substitutions);
|
||||||
|
|
||||||
substitutions.Add("WIDTH", width);
|
substitutions.Add("WIDTH", width);
|
||||||
substitutions.Add("HEIGHT", height);
|
substitutions.Add("HEIGHT", height);
|
||||||
|
|||||||
Reference in New Issue
Block a user