Changeset 531 for trunk/LocalPlayer/Select.pas
- Timestamp:
- Mar 27, 2024, 12:31:14 PM (8 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LocalPlayer/Select.pas
r530 r531 1073 1073 PPicture, PTestPicture: ^TModelPicture; 1074 1074 ModelOk: array [0 .. 4095] of Boolean; 1075 ok: Boolean;1075 Ok: Boolean; 1076 1076 begin 1077 1077 for I := 0 to MaxLayer - 1 do … … 1108 1108 begin 1109 1109 { if MyModel[i].Kind=mkSlaves then 1110 ok:= MyRO.Wonder[woPyramids].EffectiveOwner=Me1110 Ok:= MyRO.Wonder[woPyramids].EffectiveOwner=Me 1111 1111 else } if MyModel[I].Domain = dSea then 1112 1112 begin 1113 ok := False;1113 Ok := False; 1114 1114 for dx := -2 to 2 do 1115 1115 for dy := -2 to 2 do … … 1120 1120 ((MyMap[Loc1] and fTerrain = fShore) or 1121 1121 (MyMap[Loc1] and fCanal > 0)) then 1122 ok := True;1122 Ok := True; 1123 1123 end; 1124 1124 end 1125 1125 else 1126 ok := True;1127 if ok then1126 Ok := True; 1127 if Ok then 1128 1128 begin 1129 1129 if MyModel[I].Status and msObsolete = 0 then … … 1163 1163 Inc(Lines[0]); 1164 1164 end; 1165 ok := False;1165 Ok := False; 1166 1166 for I := 0 to nDomains - 1 do 1167 1167 if (upgrade[I, 0].Preq = preNone) or 1168 1168 (MyRO.Tech[upgrade[I, 0].Preq] >= tsApplicable) then 1169 ok := True;1170 if ok then { new unit class }1169 Ok := True; 1170 if Ok then { new unit class } 1171 1171 begin 1172 1172 Code[0, Lines[0]] := adMilitary; … … 1255 1255 for I := 0 to nAdv - 1 do 1256 1256 begin 1257 ok := (MyRO.Tech[I] <> tsNA) or (MyRO.ResearchTech = I);1257 Ok := (MyRO.Tech[I] <> tsNA) or (MyRO.ResearchTech = I); 1258 1258 for J := 1 to nColumn - 1 do 1259 1259 with MyRO.EnemyReport[Column[J]]^ do 1260 1260 if (Tech[I] <> tsNA) or (TurnOfCivilReport >= 0) and 1261 1261 (ResearchTech = I) then 1262 ok := True;1263 if ok then1262 Ok := True; 1263 if Ok then 1264 1264 begin 1265 1265 Code[0, Lines[0]] := I; … … 1269 1269 SortTechs; 1270 1270 1271 ok := MyRO.ResearchTech = adMilitary;1271 Ok := MyRO.ResearchTech = adMilitary; 1272 1272 for J := 1 to nColumn - 1 do 1273 1273 with MyRO.EnemyReport[Column[J]]^ do 1274 1274 if (MyRO.Alive and (1 shl Column[J]) <> 0) and 1275 1275 (TurnOfCivilReport >= 0) and (ResearchTech = adMilitary) then 1276 ok := True;1277 if ok then1276 Ok := True; 1277 if Ok then 1278 1278 begin 1279 1279 Code[0, Lines[0]] := adMilitary; … … 1330 1330 begin // check if opponent already has this model 1331 1331 MakeModelInfo(Me, mix, MyModel[mix], mi); 1332 ok := True;1332 Ok := True; 1333 1333 for emix := 0 to MyRO.nEnemyModel - 1 do 1334 1334 if (MyRO.EnemyModel[emix].Owner = DipMem[Me].pContact) and 1335 1335 IsSameModel(MyRO.EnemyModel[emix], mi) then 1336 ok := False;1337 if ok then1336 Ok := False; 1337 if Ok then 1338 1338 begin 1339 1339 Code[0, Lines[0]] := mix; … … 1414 1414 if not Assigned(PPicture.HGr) then 1415 1415 InitEnemyModel(emix); 1416 ok := True;1416 Ok := True; 1417 1417 if MainScreen.mNames.Checked then 1418 1418 for J := 0 to Lines[0] - 1 do … … 1426 1426 begin 1427 1427 Code[1, J] := 1; 1428 ok := False;1428 Ok := False; 1429 1429 Break; 1430 1430 end; 1431 1431 end; 1432 if ok then1432 if Ok then 1433 1433 begin 1434 1434 Code[0, Lines[0]] := emix;
Note:
See TracChangeset
for help on using the changeset viewer.