Ignore:
Timestamp:
Mar 27, 2024, 12:31:14 PM (8 months ago)
Author:
chronos
Message:
  • Modified: Code cleanup.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LocalPlayer/ClientTools.pas

    r522 r531  
    446446    eDied - job done and died (thurst) }
    447447var
    448   stage, NextJob, Tile: Integer;
    449   Done: set of jNone .. jPoll;
     448  Stage, NextJob, Tile: Integer;
     449  Done: set of jNone..jPoll;
    450450begin
    451451  Done := [];
     
    470470  while (Result <> eOK) and (Result <> eDied) do
    471471  begin
    472     stage := -1;
     472    Stage := -1;
    473473    repeat
    474       if stage = -1 then
     474      if Stage = -1 then
    475475        NextJob := jPoll
    476476      else
    477         NextJob := Jobs[Tile and fTerrain, stage];
     477        NextJob := Jobs[Tile and fTerrain, Stage];
    478478      if (NextJob = jNone) or not (NextJob in Done) then
    479479        Break;
    480       Inc(stage);
    481     until stage = 5;
    482     if (stage = 5) or (NextJob = jNone) then
     480      Inc(Stage);
     481    until Stage = 5;
     482    if (Stage = 5) or (NextJob = jNone) then
    483483    begin
    484484      Result := eJobDone;
Note: See TracChangeset for help on using the changeset viewer.