Fix Battialion script showing “Round 0” at start
authorWuzzy <Wuzzy2@mail.ru>
Tue, 31 Oct 2017 19:27:23 +0100
changeset 12817 59cb9bd8331c
parent 12816 de3cbbb09915
child 12818 d6c75b27db58
Fix Battialion script showing “Round 0” at start
share/hedgewars/Data/Scripts/Multiplayer/Battalion.lua
--- a/share/hedgewars/Data/Scripts/Multiplayer/Battalion.lua	Tue Oct 31 18:30:53 2017 +0100
+++ b/share/hedgewars/Data/Scripts/Multiplayer/Battalion.lua	Tue Oct 31 19:27:23 2017 +0100
@@ -1419,8 +1419,8 @@
 
   if suddenDeath == true then
     onSuddenDeathTurn()
-  else
-    AddCaption(string.format(loc("Round %d (Sudden Death in round %d)"), (TotalRounds +1), (SuddenDeathTurns +2)), getHogInfo(CurHog, 'clanColor'),  capgrpGameState)
+  elseif (TotalRounds + 1 >= 1) then
+    AddCaption(string.format(loc("Round %d (Sudden Death in round %d)"), (TotalRounds +1), (SuddenDeathTurns +2)), 0xFFFFFFFF,  capgrpGameState)
   end
 
   -- Generate new weapons for last hog if it's still alive