From 2704f3bcd5e98a5df0404825c37593b002d8e4b5 Mon Sep 17 00:00:00 2001 From: reaperrr Date: Wed, 7 Jun 2017 17:39:08 +0200 Subject: [PATCH] Minor TeslaZap cleanup Renaming timeUntilRemove to ticksUntilRemove makes it more clear and allows to drop the comment. --- OpenRA.Mods.Cnc/Projectiles/TeslaZap.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/OpenRA.Mods.Cnc/Projectiles/TeslaZap.cs b/OpenRA.Mods.Cnc/Projectiles/TeslaZap.cs index a59682e907..b347492eb0 100644 --- a/OpenRA.Mods.Cnc/Projectiles/TeslaZap.cs +++ b/OpenRA.Mods.Cnc/Projectiles/TeslaZap.cs @@ -40,7 +40,7 @@ namespace OpenRA.Mods.Cnc.Projectiles readonly ProjectileArgs args; readonly TeslaZapInfo info; TeslaZapRenderable zap; - int timeUntilRemove; // # of frames + int ticksUntilRemove; bool doneDamage = false; bool initialized = false; @@ -48,12 +48,12 @@ namespace OpenRA.Mods.Cnc.Projectiles { this.args = args; this.info = info; - this.timeUntilRemove = info.Duration; + ticksUntilRemove = info.Duration; } public void Tick(World world) { - if (timeUntilRemove-- <= 0) + if (ticksUntilRemove-- <= 0) world.AddFrameEndTask(w => w.Remove(this)); if (!doneDamage)