Changeset 328 for trunk/GameServer.pas


Ignore:
Timestamp:
Mar 25, 2021, 3:02:29 PM (4 years 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/GameServer.pas

    r326 r328  
    788788
    789789  GTurn := 0;
    790   for i := 0 to 27 do
     790  for i := 0 to nWonder - 1 do
    791791    with GWonder[i] do
    792792    begin
     
    42124212                else if built[NewProject and cpIndex] > 0 then
    42134213                  result := eInvalid
    4214                 else if (NewProject and cpIndex < 28) and
     4214                else if (NewProject and cpIndex < nWonder) and
    42154215                  (GWonder[NewProject and cpIndex].CityID <> WonderNotBuiltYet) then
    42164216                  result := eViolation // wonder already exists
Note: See TracChangeset for help on using the changeset viewer.