Fix SmudgeLayer style nits.

This commit is contained in:
Paul Chote
2013-07-24 19:30:52 +12:00
parent b54ffdbabd
commit ac7b93d39d

View File

@@ -1,6 +1,6 @@
#region Copyright & License Information #region Copyright & License Information
/* /*
* Copyright 2007-2011 The OpenRA Developers (see AUTHORS) * Copyright 2007-2013 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,
@@ -14,8 +14,8 @@ using System.Drawing;
using System.Linq; using System.Linq;
using OpenRA.FileFormats; using OpenRA.FileFormats;
using OpenRA.Graphics; using OpenRA.Graphics;
using OpenRA.Traits;
using OpenRA.Mods.RA.Effects; using OpenRA.Mods.RA.Effects;
using OpenRA.Traits;
namespace OpenRA.Mods.RA namespace OpenRA.Mods.RA
{ {
@@ -66,8 +66,9 @@ namespace OpenRA.Mods.RA
} }
var tile = tiles[loc]; var tile = tiles[loc];
// Existing smudge; make it deeper // Existing smudge; make it deeper
int depth = Info.Depths[tile.type-1]; var depth = Info.Depths[tile.type - 1];
if (tile.index < depth - 1) if (tile.index < depth - 1)
{ {
tile.index++; tile.index++;