Changeset 496 for trunk/GameServer.pas


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

    r481 r496  
    610610procedure SaveGame(FileName: string; Auto: Boolean);
    611611var
    612   X, Y, I, zero, Tile, nLocal: Integer;
     612  X, Y, I, Zero, Tile, nLocal: Integer;
    613613  LogFile: TFileStream;
    614614  S: string[255];
     
    637637      fmCreate or fmShareExclusive);
    638638
    639   zero := 0;
     639  Zero := 0;
    640640  LogFile.Position := 0;
    641641  S := 'cEvoBook';
     
    662662  for I := 0 to nPl - 1 do
    663663    if not Assigned(bix[I]) then
    664       LogFile.Write(zero, 4)
     664      LogFile.Write(Zero, 4)
    665665    else
    666666    begin
     
    669669      else
    670670        S := PlayersBrain[I].FileName;
    671       Move(zero, S[Length(S) + 1], 4);
     671      Move(Zero, S[Length(S) + 1], 4);
    672672      LogFile.Write(S, (Length(S) div 4 + 1) * 4);
    673673      LogFile.Write(OriginalDataVersion[I], 4);
    674674      S := ''; { behavior }
    675       Move(zero, S[Length(S) + 1], 4);
     675      Move(Zero, S[Length(S) + 1], 4);
    676676      LogFile.Write(S, (Length(S) div 4 + 1) * 4);
    677677      LogFile.Write(Difficulty[I], 4);
     
    687687    AutoSaveState := CL.State;
    688688    AutoSaveExists := True;
    689   end
     689  end;
    690690end;
    691691
Note: See TracChangeset for help on using the changeset viewer.