ACF5: Delete circles vgears after wave3 appeared
authorWuzzy <Wuzzy2@mail.ru>
Mon, 14 Jan 2019 23:38:31 +0100
changeset 14597 32cf7472da06
parent 14596 b4089fa16b34
child 14598 c3bbe56156e5
ACF5: Delete circles vgears after wave3 appeared
share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/backstab.lua
--- a/share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/backstab.lua	Mon Jan 14 23:30:15 2019 +0100
+++ b/share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/backstab.lua	Mon Jan 14 23:38:31 2019 +0100
@@ -378,6 +378,12 @@
   circlesPut = true
 end
 
+function DeleteCircles()
+  for i=1, #vCircs do
+    DeleteVisualGear(vCircs[i])
+  end
+end
+
 function SetupWave2DeadAnim()
   for i = 7, 1, -1 do
     if nativeDead[i] ~= true then
@@ -642,6 +648,7 @@
 function DoTurnsOver()
   stage = wave3Stage
   RestoreWave(3)
+  DeleteCircles()
 end
 
 function SkipWave2Anim()