hedgewars/uTeams.pas
changeset 105 e7cb9bb4a9de
parent 95 1ef5e2c41115
child 146 458f4f58c1b6
equal deleted inserted replaced
104:e647d0589bff 105:e7cb9bb4a9de
   338         begin
   338         begin
   339         MaxTeamHealth:= TeamHealth;
   339         MaxTeamHealth:= TeamHealth;
   340         RecountAllTeamsHealth;
   340         RecountAllTeamsHealth;
   341         end else TeamHealth:= (TeamHealth * cTeamHealthWidth) div MaxTeamHealth
   341         end else TeamHealth:= (TeamHealth * cTeamHealthWidth) div MaxTeamHealth
   342      end;
   342      end;
       
   343 // FIXME: at the game init, gtTeamHealthSorters are created for each team, and they work simultaneously
   343 AddGear(0, 0, gtTeamHealthSorter, 0)
   344 AddGear(0, 0, gtTeamHealthSorter, 0)
   344 end;
   345 end;
   345 
   346 
   346 procedure RestoreTeamsFromSave;
   347 procedure RestoreTeamsFromSave;
   347 var p: PTeam;
   348 var p: PTeam;