Changeset 709 for trunk/LocalPlayer/Draft.pas
- Timestamp:
- Aug 21, 2025, 11:37:30 PM (5 hours ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LocalPlayer/Draft.pas
r684 r709 415 415 procedure TDraftDlg.SetDomain(D: Integer); 416 416 417 function Prio( fix: Integer): Integer;417 function Prio(Fix: Integer): Integer; 418 418 var 419 419 FeaturePreq: Integer; 420 420 begin 421 FeaturePreq := Feature[ fix].Preq;421 FeaturePreq := Feature[Fix].Preq; 422 422 Assert(FeaturePreq <> preNA); 423 if fix < mcFirstNonCap then424 Result := 10000 + fix423 if Fix < mcFirstNonCap then 424 Result := 10000 + Fix 425 425 else if FeaturePreq = preNone then 426 426 Result := 20000 … … 429 429 else 430 430 Result := 30000 + AdvValue[FeaturePreq]; 431 if not ( fix in AutoFeature) then431 if not (Fix in AutoFeature) then 432 432 Inc(Result, 90000); 433 433 end; … … 471 471 begin 472 472 Domain := dGround; 473 while (Domain < dAir) and ( upgrade[Domain, 0].Preq <> preNone) and474 (MyRO.Tech[ upgrade[Domain, 0].Preq] < tsApplicable) do473 while (Domain < dAir) and (Upgrade[Domain, 0].Preq <> preNone) and 474 (MyRO.Tech[Upgrade[Domain, 0].Preq] < tsApplicable) do 475 475 Inc(Domain); 476 476 … … 478 478 MaxLines := 0; 479 479 for D := 0 to nDomains - 1 do 480 if ( upgrade[D, 0].Preq = preNone) or481 (MyRO.Tech[ upgrade[D, 0].Preq] >= tsApplicable) then480 if (Upgrade[D, 0].Preq = preNone) or 481 (MyRO.Tech[Upgrade[D, 0].Preq] >= tsApplicable) then 482 482 begin 483 483 Count := 0; … … 519 519 begin 520 520 for D := 0 to nDomains - 1 do 521 if (D <> Domain) and (( upgrade[D, 0].Preq = preNone) or522 (MyRO.Tech[ upgrade[D, 0].Preq] >= tsApplicable)) and521 if (D <> Domain) and ((Upgrade[D, 0].Preq = preNone) or 522 (MyRO.Tech[Upgrade[D, 0].Preq] >= tsApplicable)) and 523 523 (X >= xDomain + D * DomainPitch) and 524 524 (X < xDomain + D * DomainPitch + 36) and (Y >= yDomain) and
Note:
See TracChangeset
for help on using the changeset viewer.