Changeset 328 for trunk/Protocol.pas


Ignore:
Timestamp:
Mar 25, 2021, 3:02:29 PM (8 months ago)
Author:
chronos
Message:
  • Modified: Use nWonder constant as number of wonders instead of numeric value.
  • Modified: Code cleanup.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Protocol.pas

    r326 r328  
    1111  nImp = 70; { number of improvements }
    1212  nPl = 15; { max number of players, don't change! }
     13  nWonder = 28; { number of wonders }
    1314  nUmax = 4096; { max units/player, don't set above 4096 }
    1415  nCmax = 1024; { max cities/player, don't set above 4096 }
     
    16501651    Tribute: array [0 .. nPl - 1] of Integer; // no longer in use
    16511652    TributePaid: array [0 .. nPl - 1] of Integer; // no longer in use
    1652     Wonder: array [0 .. 27] of TWonderInfo;
     1653    Wonder: array [0 .. nWonder - 1] of TWonderInfo;
    16531654    Ship: array [0 .. nPl - 1] of TShipInfo;
    1654     NatBuilt: array [28 .. (nImp + 3) div 4 * 4 - 1] of ShortInt;
     1655    NatBuilt: array [nWonder .. (nImp + 3) div 4 * 4 - 1] of ShortInt;
    16551656    nBattleHistory: Integer;
    16561657    BattleHistory: ^TBattleList; // complete list of all my battles in the whole game
Note: See TracChangeset for help on using the changeset viewer.