More straightforward TotalRoundsPre counting if there's only 1 clan
authorWuzzy <Wuzzy2@mail.ru>
Sat, 11 Aug 2018 22:28:05 +0200
changeset 13657 de2b7bc00d40
parent 13656 56a925256039
child 13658 cbebd49ba39f
More straightforward TotalRoundsPre counting if there's only 1 clan
ChangeLog.txt
hedgewars/uTeams.pas
--- a/ChangeLog.txt	Sat Aug 11 21:43:55 2018 +0200
+++ b/ChangeLog.txt	Sat Aug 11 22:28:05 2018 +0200
@@ -29,6 +29,7 @@
  * Fix teleport tooltip claiming it doesn't end turn in hog placing phase with inf. attack
  * Fix /hta, /hsa and /hya commands not writing message in chat
  * Limit hedgehog health to 268435455 to prevent some bugs
+ * Fix Sudden Death starting in the second turn of a round rather than the first
 
 Frontend:
  + Add setting to disable audio dampening when losing window focus
--- a/hedgewars/uTeams.pas	Sat Aug 11 21:43:55 2018 +0200
+++ b/hedgewars/uTeams.pas	Sat Aug 11 22:28:05 2018 +0200
@@ -314,6 +314,8 @@
 if not PlacingHogs then
     if (TotalRoundsReal = -1) then
         TotalRoundsReal:= 0;
+    if (TotalRoundsPre = -1) and (ClansCount = 1) then
+        TotalRoundsPre:= 0;
 
 // Determine clan ID to check to determine whether to increase TotalRoundsPre/TotalRoundsReal
 if (not PlacingHogs) then