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/CityScreen.pas

    r325 r328  
    325325    for i := 0 to 29 do
    326326    begin
    327       for iix := 28 to nImp - 1 do
     327      for iix := nWonder to nImp - 1 do
    328328        if (ImpPosition[iix] = i) and (c.Built[iix] > 0) then
    329329        begin
     
    336336    i := 30;
    337337    for iix := 0 to nImp do
    338       if (c.Built[iix] > 0) and ((iix < 28) or (ImpPosition[iix] < 0)) then
     338      if (c.Built[iix] > 0) and ((iix < nWonder) or (ImpPosition[iix] < 0)) then
    339339      begin
    340340        FillRect(Rect(5 + 16 * (i mod 3) + 48 * (i div 18),
     
    350350      if iix <> imTrGoods then
    351351      begin
    352         if (iix >= 28) and (ImpPosition[iix] >= 0) then
     352        if (iix >= nWonder) and (ImpPosition[iix] >= 0) then
    353353          i := ImpPosition[iix];
    354354        if i < 36 then
     
    827827      Cnt := 0;
    828828      for iix := 0 to nImp - 1 do
    829         if ((iix < 28) or (ImpPosition[iix] < 0)) and (c.Built[iix] > 0) then
     829        if ((iix < nWonder) or (ImpPosition[iix] < 0)) and (c.Built[iix] > 0) then
    830830        begin
    831831          i := Cnt - Page * 6;
     
    838838    else
    839839    begin
    840       for iix := 28 to nImp - 1 do
     840      for iix := nWonder to nImp - 1 do
    841841      begin
    842842        i := ImpPosition[iix] - 6 * ZoomArea;
Note: See TracChangeset for help on using the changeset viewer.