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

    r318 r328  
    10681068        code[0, 0] := cpImp + imTrGoods;
    10691069        Lines[0] := 1;
    1070         for i := 28 to nImp - 1 do
     1070        for i := nWonder to nImp - 1 do
    10711071          if Imp[i].Kind = ikCommon then
    10721072            TryAddImpLine(0, i + cpImp);
    1073         for i := 28 to nImp - 1 do
     1073        for i := nWonder to nImp - 1 do
    10741074          if not(Imp[i].Kind in [ikCommon, ikTrGoods]) and
    10751075            ((MyRO.NatBuilt[i] = 0) or (Imp[i].Kind = ikNatLocal)) then
     
    10831083
    10841084        // wonders
    1085         for i := 0 to 27 do
     1085        for i := 0 to nWonder - 1 do
    10861086          TryAddImpLine(1, i + cpImp);
    10871087
Note: See TracChangeset for help on using the changeset viewer.