Fix capitalization.
This commit is contained in:
@@ -17,6 +17,8 @@ namespace OpenRA.Mods.Common.Effects
|
||||
{
|
||||
public class Beacon : IEffect
|
||||
{
|
||||
static readonly int MaxArrowHeight = 512;
|
||||
|
||||
readonly Player owner;
|
||||
readonly WPos position;
|
||||
readonly string palettePrefix;
|
||||
@@ -26,8 +28,7 @@ namespace OpenRA.Mods.Common.Effects
|
||||
readonly Animation poster;
|
||||
readonly Animation clock;
|
||||
|
||||
static readonly int maxArrowHeight = 512;
|
||||
int arrowHeight = maxArrowHeight;
|
||||
int arrowHeight = MaxArrowHeight;
|
||||
int arrowSpeed = 50;
|
||||
|
||||
// Player-placed beacons are removed after a delay
|
||||
@@ -69,7 +70,7 @@ namespace OpenRA.Mods.Common.Effects
|
||||
public void Tick(World world)
|
||||
{
|
||||
arrowHeight += arrowSpeed;
|
||||
var clamped = arrowHeight.Clamp(0, maxArrowHeight);
|
||||
var clamped = arrowHeight.Clamp(0, MaxArrowHeight);
|
||||
if (arrowHeight != clamped)
|
||||
{
|
||||
arrowHeight = clamped;
|
||||
|
||||
@@ -19,6 +19,8 @@ namespace OpenRA.Mods.Common.Effects
|
||||
{
|
||||
public class FloatingText : IEffect
|
||||
{
|
||||
static readonly WVec Velocity = new WVec(0, 0, 86);
|
||||
|
||||
readonly SpriteFont font;
|
||||
readonly string text;
|
||||
Color color;
|
||||
@@ -34,13 +36,12 @@ namespace OpenRA.Mods.Common.Effects
|
||||
this.remaining = duration;
|
||||
}
|
||||
|
||||
static readonly WVec velocity = new WVec(0, 0, 86);
|
||||
public void Tick(World world)
|
||||
{
|
||||
if (--remaining <= 0)
|
||||
world.AddFrameEndTask(w => w.Remove(this));
|
||||
|
||||
pos += velocity;
|
||||
pos += Velocity;
|
||||
}
|
||||
|
||||
public IEnumerable<IRenderable> Render(WorldRenderer wr)
|
||||
|
||||
Reference in New Issue
Block a user