Changeset 367 for trunk/Start.pas
- Timestamp:
- Apr 14, 2021, 9:12:03 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Start.pas
r364 r367 360 360 I: Integer; 361 361 S: string; 362 {$IFDEF WINDOWS} 362 363 ResolutionX, ResolutionY, ResolutionBPP, ResolutionFreq: Integer; 364 {$ENDIF} 363 365 ScreenMode: Integer; 364 366 begin … … 398 400 if ValueExists('LastGame') then LastGame := Reg.ReadString('LastGame') 399 401 else LastGame := ''; 402 if ValueExists('NetworkEnabled') then NetworkEnabled := Reg.ReadBool('NetworkEnabled') 403 else NetworkEnabled := False; 400 404 401 405 if ValueExists('ScreenMode') then … … 403 407 else ScreenMode := 1; 404 408 FullScreen := ScreenMode > 0; 409 if ValueExists('MultiControl') then 410 MultiControl := ReadInteger('MultiControl') 411 else MultiControl := 0; 412 {$IFDEF WINDOWS} 405 413 if ValueExists('ResolutionX') then 406 414 ResolutionX := ReadInteger('ResolutionX'); … … 411 419 if ValueExists('ResolutionFreq') then 412 420 ResolutionFreq := ReadInteger('ResolutionFreq'); 413 if ValueExists('MultiControl') then414 MultiControl := ReadInteger('MultiControl')415 else MultiControl := 0;416 {$IFDEF WINDOWS}417 421 if ScreenMode = 2 then 418 422 ChangeResolution(ResolutionX, ResolutionY, ResolutionBPP, … … 440 444 WriteInteger('StartTab', Integer(ShowTab)); 441 445 WriteString('LastGame', LastGame); 446 WriteBool('NetworkEnabled', NetworkEnabled); 442 447 finally 443 448 Free; … … 924 929 FormerGames.Delete(I); 925 930 if ListIndex[tbNew] = I then 926 ListIndex[tbNew] := 0 931 ListIndex[tbNew] := 0; 927 932 end; 928 933 end; … … 1183 1188 EmptyMenu(PopupMenu1.Items); 1184 1189 if PlayerPopupIndex < 0 then begin // select default AI 1185 OfferBrain(BrainNetworkClient, FixedLines); 1186 Inc(FixedLines); 1190 if NetworkEnabled then begin 1191 OfferBrain(BrainNetworkClient, FixedLines); 1192 Inc(FixedLines); 1193 end; 1187 1194 1188 1195 MenuItem := TMenuItem.Create(PopupMenu1); … … 1213 1220 end; 1214 1221 if PlayerPopupIndex > 0 then begin 1215 OfferBrain(BrainNetworkServer, FixedLines); 1216 Inc(FixedLines); 1222 if NetworkEnabled then begin 1223 OfferBrain(BrainNetworkServer, FixedLines); 1224 Inc(FixedLines); 1225 end; 1217 1226 1218 1227 MenuItem := TMenuItem.Create(PopupMenu1);
Note:
See TracChangeset
for help on using the changeset viewer.