Changeset 549 for trunk/LocalPlayer/Select.pas
- Timestamp:
- Apr 21, 2024, 8:55:53 PM (7 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LocalPlayer/Select.pas
r536 r549 1119 1119 if (Loc1 >= 0) and (Loc1 < G.lx * G.ly) and 1120 1120 ((MyMap[Loc1] and fTerrain = fShore) or 1121 (MyMap[Loc1] and fCanal > 0)) then 1122 Ok := True; 1121 (MyMap[Loc1] and fCanal > 0)) then begin 1122 Ok := True; 1123 Break; 1124 end; 1123 1125 end; 1124 1126 end … … 1166 1168 for I := 0 to nDomains - 1 do 1167 1169 if (upgrade[I, 0].Preq = preNone) or 1168 (MyRO.Tech[upgrade[I, 0].Preq] >= tsApplicable) then 1169 Ok := True; 1170 (MyRO.Tech[upgrade[I, 0].Preq] >= tsApplicable) then begin 1171 Ok := True; 1172 Break; 1173 end; 1170 1174 if Ok then { new unit class } 1171 1175 begin … … 1273 1277 with MyRO.EnemyReport[Column[J]]^ do 1274 1278 if (MyRO.Alive and (1 shl Column[J]) <> 0) and 1275 (TurnOfCivilReport >= 0) and (ResearchTech = adMilitary) then 1276 Ok := True; 1279 (TurnOfCivilReport >= 0) and (ResearchTech = adMilitary) then begin 1280 Ok := True; 1281 Break; 1282 end; 1277 1283 if Ok then 1278 1284 begin … … 1333 1339 for emix := 0 to MyRO.nEnemyModel - 1 do 1334 1340 if (MyRO.EnemyModel[emix].Owner = DipMem[Me].pContact) and 1335 IsSameModel(MyRO.EnemyModel[emix], mi) then 1336 Ok := False; 1341 IsSameModel(MyRO.EnemyModel[emix], mi) then begin 1342 Ok := False; 1343 Break; 1344 end; 1337 1345 if Ok then 1338 1346 begin … … 1439 1447 end; 1440 1448 SortModels; 1441 FirstShrinkedLine[0] := 0 1449 FirstShrinkedLine[0] := 0; 1442 1450 end; 1443 1451 kTribe: … … 1554 1562 MultiPage := False; 1555 1563 for I := 1 to MaxLayer - 1 do 1556 if Lines[I] > 0 then 1564 if Lines[I] > 0 then begin 1557 1565 MultiPage := True; 1566 Break; 1567 end; 1558 1568 WideBottom := MultiPage or (Kind = kScience) or 1559 1569 not Phrases2FallenBackToEnglish and … … 1737 1747 ((AdvValue[I] < 2000) or (MyRO.Tech[adMassProduction] > tsNA)) and 1738 1748 ((AdvValue[I] < 1000) or (MyRO.Tech[adScience] > tsNA)) and 1739 (Server(sSetResearch - sExecute, Me, I, nil^) < rExecuted) then 1740 ShowFocus := True; 1749 (Server(sSetResearch - sExecute, Me, I, nil^) < rExecuted) then begin 1750 ShowFocus := True; 1751 Break; 1752 end; 1741 1753 end; 1742 1754 ToggleBtn.Visible := (Kind = kCities) and not Supervising or (Kind = kAdvance)
Note:
See TracChangeset
for help on using the changeset viewer.