hedgewars/uTeams.pas
changeset 13777 3fa9e30927f1
parent 13768 c084bd440009
child 13808 5c6052351991
equal deleted inserted replaced
13776:720dc03600c9 13777:3fa9e30927f1
    74 CheckForWin:= true;
    74 CheckForWin:= true;
    75 
    75 
    76 TurnTimeLeft:= 0;
    76 TurnTimeLeft:= 0;
    77 ReadyTimeLeft:= 0;
    77 ReadyTimeLeft:= 0;
    78 
    78 
    79 // if the game ends during a multishot, do last TurnStats + TurnReaction
    79 // If the game ends during a multishot, or after the Sudden Death
    80 if (not bBetweenTurns) and isInMultiShoot then
    80 // water has risen, do last turn stats / reaction.
       
    81 if ((not bBetweenTurns) and isInMultiShoot) or (bDuringWaterRise) then
    81     begin
    82     begin
    82     TurnStats();
    83     TurnStats();
    83     TurnReaction();
    84     if (not bDuringWaterRise) then
       
    85         TurnReaction();
    84     TurnStatsReset();
    86     TurnStatsReset();
    85     end;
    87     end;
    86 
    88 
    87 if not TeamsGameOver then
    89 if not TeamsGameOver then
    88     begin
    90     begin