Changeset 496 for trunk/GameServer.pas
- Timestamp:
- Dec 18, 2023, 10:31:54 PM (11 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GameServer.pas
r481 r496 610 610 procedure SaveGame(FileName: string; Auto: Boolean); 611 611 var 612 X, Y, I, zero, Tile, nLocal: Integer;612 X, Y, I, Zero, Tile, nLocal: Integer; 613 613 LogFile: TFileStream; 614 614 S: string[255]; … … 637 637 fmCreate or fmShareExclusive); 638 638 639 zero := 0;639 Zero := 0; 640 640 LogFile.Position := 0; 641 641 S := 'cEvoBook'; … … 662 662 for I := 0 to nPl - 1 do 663 663 if not Assigned(bix[I]) then 664 LogFile.Write( zero, 4)664 LogFile.Write(Zero, 4) 665 665 else 666 666 begin … … 669 669 else 670 670 S := PlayersBrain[I].FileName; 671 Move( zero, S[Length(S) + 1], 4);671 Move(Zero, S[Length(S) + 1], 4); 672 672 LogFile.Write(S, (Length(S) div 4 + 1) * 4); 673 673 LogFile.Write(OriginalDataVersion[I], 4); 674 674 S := ''; { behavior } 675 Move( zero, S[Length(S) + 1], 4);675 Move(Zero, S[Length(S) + 1], 4); 676 676 LogFile.Write(S, (Length(S) div 4 + 1) * 4); 677 677 LogFile.Write(Difficulty[I], 4); … … 687 687 AutoSaveState := CL.State; 688 688 AutoSaveExists := True; 689 end 689 end; 690 690 end; 691 691
Note:
See TracChangeset
for help on using the changeset viewer.