Make sure TotalRounds increases to 0 on first real turn
authorWuzzy <Wuzzy2@mail.ru>
Wed, 11 Jul 2018 21:56:30 +0200
changeset 13476 c265a3e6f6da
parent 13475 2a0df4705849
child 13483 e1543ad2fac9
child 13484 480ea997036b
Make sure TotalRounds increases to 0 on first real turn
hedgewars/uTeams.pas
--- a/hedgewars/uTeams.pas	Wed Jul 11 19:14:11 2018 +0200
+++ b/hedgewars/uTeams.pas	Wed Jul 11 21:56:30 2018 +0200
@@ -290,7 +290,10 @@
         ResetWeapons;
         inc(TotalRounds)
         end
-    end;
+    end
+else
+    if TotalRounds <= -1 then
+        TotalRounds:= 0;
 
 inc(CurrentTeam^.Clan^.TurnNumber);
 with CurrentTeam^.Clan^ do