Fix onEndTurn being called in multishoot
authorWuzzy <Wuzzy2@mail.ru>
Sat, 17 Feb 2018 20:59:56 +0100
changeset 13031 bef97cc310b0
parent 13030 da691787fcd2
child 13032 91f23558c936
Fix onEndTurn being called in multishoot
hedgewars/uGears.pas
--- a/hedgewars/uGears.pas	Sat Feb 17 20:51:36 2018 +0100
+++ b/hedgewars/uGears.pas	Sat Feb 17 20:59:56 2018 +0100
@@ -255,7 +255,8 @@
 case step of
     stInit:
         begin
-        ScriptCall('onEndTurn');
+        if (not bBetweenTurns) and (not isInMultiShoot) then
+            ScriptCall('onEndTurn');
         inc(step)
         end;
     stDelay: