Changeset 191 for trunk/UGame.pas


Ignore:
Timestamp:
May 1, 2018, 10:16:08 AM (7 years ago)
Author:
chronos
Message:
  • Fixed: Clients initialization if game is loaded from file.
  • Fixed: Removed compilation warnings.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UGame.pas

    r185 r191  
    88  Classes, SysUtils, ExtCtrls, Graphics, XMLConf, XMLRead, XMLWrite, Forms,
    99  DOM, Math, LazFileUtils, UXMLUtils, Dialogs, Types, LCLType, LCLIntf, fgl,
    10   UGeometry, SpecializedList;
     10  UGeometry;
    1111
    1212const
     
    14671467      if Power < MaxPower then begin
    14681468        // Increase units count
    1469         if Game.GrowAmount = gaByOne then Addition := 1
    1470           else if Game.GrowAmount = gaBySquareRoot then begin
    1471             Addition := Trunc(Sqrt(Power));
    1472             if Addition = 0 then Addition := 1;
    1473           end;
     1469        Addition := 0;
     1470        if Game.GrowAmount = gaByOne then begin
     1471          Addition := 1;
     1472        end else
     1473        if Game.GrowAmount = gaBySquareRoot then begin
     1474          Addition := Trunc(Sqrt(Power));
     1475          if Addition = 0 then Addition := 1;
     1476        end;
    14741477        Power := Min(Power + Addition, MaxPower);
    14751478      end else
Note: See TracChangeset for help on using the changeset viewer.