Changeset 549 for trunk/LocalPlayer/Draft.pas
- Timestamp:
- Apr 21, 2024, 8:55:53 PM (7 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LocalPlayer/Draft.pas
r536 r549 307 307 for I := 0 to Lines - 1 do 308 308 begin 309 if not (Code[I] in AutoFeature) then309 if not (Code[I] in AutoFeature) then 310 310 begin 311 311 // paint +/- butttons … … 458 458 procedure TDraftDlg.FormShow(Sender: TObject); 459 459 var 460 count, D, I: Integer;460 Count, D, I: Integer; 461 461 begin 462 462 Domain := dGround; … … 465 465 Inc(Domain); 466 466 467 // count max number of features in any domain467 // Count max number of features in any domain 468 468 MaxLines := 0; 469 469 for D := 0 to nDomains - 1 do … … 471 471 (MyRO.Tech[upgrade[D, 0].Preq] >= tsApplicable) then 472 472 begin 473 count := 0;473 Count := 0; 474 474 for I := 0 to nFeature - 1 do 475 475 if IsFeatureInList(D, I) then 476 Inc( count);477 if count > MaxLines then478 MaxLines := count;476 Inc(Count); 477 if Count > MaxLines then 478 MaxLines := Count; 479 479 end; 480 480 Cut := (MaxLines0 - MaxLines) * LinePitch;
Note:
See TracChangeset
for help on using the changeset viewer.