Changeset 592 for trunk/Brain.pas
- Timestamp:
- Aug 10, 2024, 3:40:04 PM (3 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Brain.pas
r589 r592 84 84 with Picture.Canvas do begin 85 85 Brush.Color := $904830; 86 FillRect(Rect(0, 0, 64, 64));86 FillRect(Rect(0, 0, Picture.Width, Picture.Height)); 87 87 Font.Assign(UniFont[ftTiny]); 88 88 Font.Style := []; 89 89 Font.Color := $5FDBFF; 90 90 TextSize := TextExtent(FileName); 91 TextOut(32 - TextSize.Width div 2, 32 - TextSize.Height div 2, FileName); 91 TextOut((Picture.Width - TextSize.Width) div 2, 92 (Picture.Height - TextSize.Height) div 2, FileName); 92 93 end; 93 94 end; … … 110 111 Flags := fMultiple; 111 112 Client := nil; 112 Initialized := false;113 Initialized := False; 113 114 ServerVersion := 0; 114 115 if not FileExists(AIFileName) then … … 118 119 while not EOF(T) do 119 120 begin 120 ReadLn(T, s);121 s := trim(s);121 ReadLn(T, S); 122 S := Trim(s); 122 123 if Pos(' ', S) > 0 then begin 123 124 Key := Copy(S, 1, Pos(' ', S) - 1); … … 160 161 {$ENDIF}{$ENDIF} 161 162 else if Key = '#GAMEVERSION' then 162 for i:= 1 to Length(Value) do163 case Value[ i] of163 for I := 1 to Length(Value) do 164 case Value[I] of 164 165 '0' .. '9': 165 166 ServerVersion := ServerVersion and $FFFF00 + ServerVersion and 166 $FF * 10 + ord(Value[i]) - 48;167 $FF * 10 + Ord(Value[I]) - 48; 167 168 '.': 168 169 ServerVersion := ServerVersion shl 8;
Note:
See TracChangeset
for help on using the changeset viewer.