# HG changeset patch
# User Wuzzy <Wuzzy2@mail.ru>
# Date 1544746752 -3600
# Node ID 6b1fe6d0a26bf8eb8897994a0db994abec034472
# Parent  448213112508a86986fcfda7dd1bf88f75b58a45
Faster switch to correct hog in ACF5

diff -r 448213112508 -r 6b1fe6d0a26b 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