Changeset 531 for trunk/AI/StdAI/AI.pas
- Timestamp:
- Mar 27, 2024, 12:31:14 PM (8 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/AI/StdAI/AI.pas
r522 r531 93 93 TPersistentData = record 94 94 LastResearchTech, BehaviorFlags, TheologyPartner: Integer; 95 RejectTurn: array[Suggestion, 0..15] of smallint;95 RejectTurn: array[Suggestion, 0..15] of SmallInt; 96 96 RequestedTechs: array[0..nRequestedTechs - 1] of Integer; 97 97 // ad + p shl 8 + Turn shl 16 … … 196 196 else 197 197 BehaviorFlags := bMale; 198 DebugMessage(1, 'Gender:=' + char(48 + BehaviorFlags and bGender));198 DebugMessage(1, 'Gender:=' + Char(48 + BehaviorFlags and bGender)); 199 199 TheologyPartner := -1; 200 200 FillChar(RejectTurn, SizeOf(RejectTurn), $FF); 201 Fill char(RequestedTechs, SizeOf(RequestedTechs), $FF);201 FillChar(RequestedTechs, SizeOf(RequestedTechs), $FF); 202 202 end; 203 203 end; … … 324 324 mi: TModelInfo; 325 325 Entry: array[0..nAdv - 1] of Boolean; 326 ok: Boolean;326 Ok: Boolean; 327 327 328 328 function MarkEntry(ad: Integer): Boolean; … … 540 540 ((EarliestNeeded < 0) or (Advancedness[ad] < Advancedness[EarliestNeeded])) then 541 541 begin 542 ok := False;542 Ok := False; 543 543 for iad := 0 to nResearchOrder - 1 do 544 544 if ResearchOrder[Data.BehaviorFlags and bGender, iad] = ad then 545 545 begin 546 ok := True;546 Ok := True; 547 547 Break; 548 548 end; 549 if not ok then549 if not Ok then 550 550 begin 551 551 EarliestNeeded := ad; … … 1406 1406 begin 1407 1407 Data.BehaviorFlags := Data.BehaviorFlags and not bGender or NewGender; 1408 DebugMessage(1, 'Gender:=' + char(48 + NewGender));1408 DebugMessage(1, 'Gender:=' + Char(48 + NewGender)); 1409 1409 end; 1410 1410 end; … … 2427 2427 Total := Total + CityResult[cix]; 2428 2428 if Total = 0 then 2429 continue; // district does not exist2429 Continue; // district does not exist 2430 2430 2431 2431 Share := 0;
Note:
See TracChangeset
for help on using the changeset viewer.