Ignore:
Timestamp:
Dec 18, 2023, 10:31:54 PM (11 months ago)
Author:
chronos
Message:
  • Modified: Code cleanup.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LocalPlayer/Enhance.pas

    r468 r496  
    126126procedure TEnhanceDlg.OffscreenPaint;
    127127var
    128   I, stage, TerrType, TileImp, X, EndStage, Cost, LastJob: Integer;
     128  I, Stage, TerrType, TileImp, X, EndStage, Cost, LastJob: Integer;
    129129  S: string;
    130   Done: set of jNone .. jTrans;
     130  Done: set of jNone..jTrans;
    131131  TypeChanged: Boolean;
    132132begin
    133   OffscreenUser := self;
     133  OffscreenUser := Self;
    134134  Offscreen.Canvas.Font.Assign(UniFont[ftSmall]);
    135135  FillOffscreen(0, 0, InnerWidth, InnerHeight);
     
    145145  Done := [];
    146146  Cost := 0;
    147   for stage := 0 to EndStage do
     147  for Stage := 0 to EndStage do
    148148  begin
    149     if stage > 0 then
     149    if Stage > 0 then
    150150    begin
    151151      Sprite(Offscreen, HGrSystem, X - 10, 66, 14, 14, 80, 1);
    152       case MyData.EnhancementJobs[Page, stage - 1] of
     152      case MyData.EnhancementJobs[Page, Stage - 1] of
    153153        jRoad:
    154154          begin
     
    192192          end;
    193193      end;
    194       Include(Done, MyData.EnhancementJobs[Page, stage - 1]);
     194      Include(Done, MyData.EnhancementJobs[Page, Stage - 1]);
    195195    end;
    196196
Note: See TracChangeset for help on using the changeset viewer.