Changeset 142
- Timestamp:
- Jul 11, 2017, 10:27:47 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UGame.pas
r131 r142 2194 2194 var 2195 2195 I: Integer; 2196 AvailPower: Integer; 2196 2197 begin 2197 2198 // If available power remains then use all for existed unit moves 2198 2199 for I := 0 to Game.Moves.Count - 1 do 2199 2200 with TUnitMove(Game.Moves[I]) do begin 2200 if CellFrom.GetAvialPower > 0 then 2201 CountOnce := CountOnce + CellFrom.GetAvialPower; 2201 if CellFrom.GetAvialPower > 0 then begin 2202 AvailPower := CellFrom.GetAvialPower; 2203 CountOnce := CountOnce + Min(AvailPower div CellFrom.MovesFrom.Count, AvailPower); 2204 end; 2202 2205 end; 2203 2206 end;
Note:
See TracChangeset
for help on using the changeset viewer.