ASA, fruit02: Minor refactor
authorWuzzy <almikes@aol.com>
Fri, 29 Sep 2017 02:10:37 +0200
changeset 12589 46a10d3fa619
parent 12588 da2bdc34bb1c
child 12590 b28f09d70e73
ASA, fruit02: Minor refactor
share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/fruit02.lua
--- a/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/fruit02.lua	Fri Sep 29 02:08:52 2017 +0200
+++ b/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/fruit02.lua	Fri Sep 29 02:10:37 2017 +0200
@@ -253,12 +253,7 @@
 			PlaySound(sndShotgunReload)
 			AddCaption(loc("Anti-Gravity Device Part (+1)"), GetClanColor(GetHogClan(CurrentHedgehog)), capgrpAmmostate)
 			deviceCrate.collected = true
-			if deviceCrate.collector == nil then
-				deviceCrate.collector = CurrentHedgehog
-				if deviceCrate.collector == nil then
-				AddCaption("XXXXX", 0xFF0000FF, capgrpMessage2)
-				end
-			end
+			deviceCrate.collector = CurrentHedgehog
 			-- Spawn rope crate
 			SpawnUtilityCrate(ropeCrate.x, ropeCrate.y, ropeCrate.name)
 		end