Faster switch to correct hog in ACF5
authorWuzzy <Wuzzy2@mail.ru>
Fri, 14 Dec 2018 01:19:12 +0100
changeset 14464 6b1fe6d0a26b
parent 14463 448213112508
child 14465 d084fc76c566
Faster switch to correct hog in ACF5
share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/backstab.lua
--- a/share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/backstab.lua	Fri Dec 14 01:03:35 2018 +0100
+++ b/share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/backstab.lua	Fri Dec 14 01:19:12 2018 +0100
@@ -1125,11 +1125,13 @@
   end
 
   if stage == spyKillStage then
-    if CurrentHedgehog == spyHog or GetHogTeamName(CurrentHedgehog) ~= loc("Natives") then
+    if GetHogTeamName(CurrentHedgehog) ~= loc("Natives") then
       EndTurn(true)
     else
+      if CurrentHedgehog == spyHog then
+        AnimSwitchHog(natives[leaksNum])
+      end
       SetGearMessage(CurrentHedgehog, 0)
-      --AnimSwitchHog(natives[leaksNum])
       SetTurnTimeLeft(MAX_TURN_TIME)
     end
   else