Changeset 327 for trunk/LocalPlayer/NatStat.pas
- Timestamp:
- Mar 25, 2021, 2:09:42 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LocalPlayer/NatStat.pas
r315 r327 141 141 ScrollDownBtn.Visible := (CurrentReport.TurnOfCivilReport >= 0) and 142 142 (ReportText.Count > ReportLines); 143 if OptionChecked and (1 shl soTellAI) <> 0then143 if soTellAI in OptionChecked then 144 144 TellAIBtn.ButtonIndex := 3 145 145 else … … 390 390 end; 391 391 392 if OptionChecked and (1 shl soTellAI) <> 0 then 393 begin 392 if soTellAI in OptionChecked then begin 394 393 Server(sGetAIInfo, me, pView, ps); 395 394 LoweredTextOut(Canvas, -1, MainTexture, 42, 445, ps); 396 end 397 else 395 end else 398 396 LoweredTextOut(Canvas, -2, MainTexture, 42, 445, 399 397 Phrases2.Lookup('MENU_TELLAI')); … … 537 535 procedure TNatStatDlg.TellAIBtnClick(Sender: TObject); 538 536 begin 539 OptionChecked := OptionChecked xor (1 shl soTellAI); 540 if OptionChecked and (1 shl soTellAI) <> 0 then 537 if soTellAI in OptionChecked then OptionChecked := OptionChecked - [soTellAI] 538 else OptionChecked := OptionChecked + [soTellAI]; 539 if soTellAI in OptionChecked then 541 540 TellAIBtn.ButtonIndex := 3 542 541 else
Note:
See TracChangeset
for help on using the changeset viewer.