hedgewars/uGears.pas
changeset 8127 cffa2c8275e0
parent 8030 165aeaaaf445
child 8161 0b8beacff8a5
equal deleted inserted replaced
8125:814cc5cf0b66 8127:cffa2c8275e0
   904                     begin
   904                     begin
   905                     ar[Count]:= @Hedgehogs[i];
   905                     ar[Count]:= @Hedgehogs[i];
   906                     inc(Count)
   906                     inc(Count)
   907                     end;
   907                     end;
   908         end;
   908         end;
   909     // unC0Rr, while it is true user can watch value on map screen, IMO this (and check above) should be enforced in UI
       
   910     // - is there a good place to put values for the different widgets to check?  Right now they are kind of disconnected.
       
   911     //it would be nice if divide teams, forts mode and hh per map could all be checked by the team widget, or maybe disable start button
       
   912     TryDo(Count <= MaxHedgehogs, 'Too many hedgehogs for this map! (max # is ' + inttostr(MaxHedgehogs) + ')', true);
       
   913     while (Count > 0) do
   909     while (Count > 0) do
   914         begin
   910         begin
   915         i:= GetRandom(Count);
   911         i:= GetRandom(Count);
   916         if PlacingHogs then
   912         if PlacingHogs then
   917             ar[i]^.Unplaced:= true
   913             ar[i]^.Unplaced:= true