Changeset 550 for trunk/LocalPlayer
- Timestamp:
- Apr 22, 2024, 10:17:01 PM (8 months ago)
- Location:
- trunk/LocalPlayer
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LocalPlayer/CityScreen.pas
r549 r550 1188 1188 begin 1189 1189 I := 5; 1190 while (I >= 0) and not ((X >= xZoomMap + 14 + 72 * (I mod 3)) and1190 while (I >= 0) and not ((X >= xZoomMap + 14 + 72 * (I mod 3)) and 1191 1191 (X < xZoomMap + 14 + 56 + 72 * (I mod 3)) and 1192 1192 (Y >= yZoomMap + 14 + 56 * (I div 3)) and … … 1299 1299 begin 1300 1300 I := 5; 1301 while (I >= 0) and not ((X >= xZoomMap + 64 * (I mod 3)) and1301 while (I >= 0) and not ((X >= xZoomMap + 64 * (I mod 3)) and 1302 1302 (X < xZoomMap + 64 + 64 * (I mod 3)) and 1303 1303 (Y >= yZoomMap + 20 + 48 * (I div 3)) and -
trunk/LocalPlayer/Diagram.pas
r536 r550 111 111 Sprite(Canvas, HGrSystem2, Left + Width div 2 + xComp[3] + 32, 112 112 Top + 100 + 46 + yComp[3], 16, 27, 18, 82); 113 if (nComp <> 6) and (nComp <> 2) and not ((nComp = 0) and (nPow < 1)) then113 if (nComp <> 6) and (nComp <> 2) and not ((nComp = 0) and (nPow < 1)) then 114 114 Sprite(Canvas, HGrSystem2, Left + Width div 2 + xComp[nComp], 115 115 Top + 100 + 7 + yComp[nComp], 16, 27, 18, 82); 116 if (nComp <> 6) and (nComp <> 3) and not ((nComp = 0) and (nPow < 2)) then116 if (nComp <> 6) and (nComp <> 3) and not ((nComp = 0) and (nPow < 2)) then 117 117 Sprite(Canvas, HGrSystem2, Left + Width div 2 + xComp[nComp], 118 118 Top + 100 + 46 + yComp[nComp], 16, 27, 18, 82); -
trunk/LocalPlayer/Draft.pas
r549 r550 379 379 ((Feature[I].Preq = preSun) and (MyRO.Wonder[woSun].EffectiveOwner = Me) 380 380 or (Feature[I].Preq >= 0) and (MyRO.Tech[Feature[I].Preq] >= tsApplicable) 381 ) and not ((Feature[I].Preq = adSteamEngine) and381 ) and not ((Feature[I].Preq = adSteamEngine) and 382 382 (MyRO.Tech[adNuclearPower] >= tsApplicable)) then 383 383 begin -
trunk/LocalPlayer/Help.pas
r549 r550 567 567 else if HelpLineInfo.CrossLink then 568 568 Sprite(OffScreen, HGrSystem, 12, I * 24 + 5, 14, 14, 80, 1) 569 else if not ((Kind = hkMisc) and (No = Integer(miscMain))) then569 else if not ((Kind = hkMisc) and (No = Integer(miscMain))) then 570 570 Sprite(OffScreen, HGrSystem, 10, I * 24 + 6, 14, 14, 65, 1); 571 571 x0[I] := 24; -
trunk/LocalPlayer/IsoEngine.pas
r549 r550 988 988 begin 989 989 Conn := Connection4(Loc, fRiver, fRiver) or 990 Connection4(Loc, fTerrain, fShore) or Connection4(Loc, fTerrain, 991 fUNKNOWN); 990 Connection4(Loc, fTerrain, fShore) or Connection4(Loc, fTerrain, fUNKNOWN); 992 991 TerrainSprite(X, Y, spRiver + Conn mod 8 + (Conn div 8) * TerrainIconCols); 993 992 end; … … 1260 1259 UnitInfo.Health := DefHealth; 1261 1260 if (UnitInfo.Owner <> CityOwner) and 1262 not ((CityOwner = Me) and (MyRO.Treaty[UnitInfo.Owner] = trAlliance))1261 not ((CityOwner = Me) and (MyRO.Treaty[UnitInfo.Owner] = trAlliance)) 1263 1262 then 1264 1263 {$IFNDEF SCR} if (UnFocus >= 0) and (Loc = MyUn[UnFocus].Loc) then { active unit } -
trunk/LocalPlayer/Select.pas
r549 r550 181 181 LoweredTextOut(Canvas, -1, MainTexture, 182 182 (Width - BiColorTextWidth(Canvas, S)) div 2, 31, S); 183 if not MultiPage and (Kind in [kProject, kAdvance, kFarAdvance]) and not Phrases2FallenBackToEnglish 184 then 185 begin 183 if not MultiPage and (Kind in [kProject, kAdvance, kFarAdvance]) and 184 not Phrases2FallenBackToEnglish then begin 186 185 S := Phrases2.Lookup('SHIFTCLICK'); 187 186 LoweredTextOut(Canvas, -2, MainTexture, … … 1396 1395 Code[1, Lines[0]] := MyRO.nEnemyModel - 1; 1397 1396 while (Code[1, Lines[0]] >= 0) and 1398 not ((MyRO.EnemyModel[Code[1, Lines[0]]].Owner = pView) and1397 not ((MyRO.EnemyModel[Code[1, Lines[0]]].Owner = pView) and 1399 1398 (MyRO.EnemyModel[Code[1, Lines[0]]].mix = I)) do 1400 1399 Dec(Code[1, Lines[0]]); … … 1678 1677 begin 1679 1678 ForceClose := (ListKind <> Kind) and 1680 not ((Kind = kCities) and (ListKind = kCityEvents)) and1681 not ((Kind = kCityEvents) and (ListKind = kCities)) and1682 not ((Kind = kModels) and (ListKind = kEModels)) and1683 not ((Kind = kEModels) and (ListKind = kModels));1679 not ((Kind = kCities) and (ListKind = kCityEvents)) and 1680 not ((Kind = kCityEvents) and (ListKind = kCities)) and 1681 not ((Kind = kModels) and (ListKind = kEModels)) and 1682 not ((Kind = kEModels) and (ListKind = kModels)); 1684 1683 1685 1684 Kind := ListKind; -
trunk/LocalPlayer/Term.pas
r549 r550 1279 1279 Loc0: Integer; 1280 1280 begin 1281 Assert(not ((uix >= 0) and Supervising));1281 Assert(not ((uix >= 0) and Supervising)); 1282 1282 if uix <> UnFocus then 1283 1283 begin … … 3082 3082 cShowUnitChanged, cShowCityChanged, cShowAfterMove, cShowAfterAttack: 3083 3083 if (Idle and (NewPlayer = Me) or not Idle and not skipped) and 3084 not ((GameMode = cMovie) and (MovieSpeed = 4)) then3084 not ((GameMode = cMovie) and (MovieSpeed = 4)) then 3085 3085 begin 3086 3086 Assert(NewPlayer = Me); … … 3146 3146 if (Idle and (NewPlayer = Me) or not Idle and not skipped and 3147 3147 (TShowMove(Data).emix <> $FFFF)) and 3148 not ((GameMode = cMovie) and (MovieSpeed = 4)) then3148 not ((GameMode = cMovie) and (MovieSpeed = 4)) then 3149 3149 begin 3150 3150 Assert(NewPlayer = Me); … … 3327 3327 if (Idle and (NewPlayer = Me) or not Idle and not skipped and 3328 3328 (TShowMove(Data).emix <> $FFFF)) and 3329 not ((GameMode = cMovie) and (MovieSpeed = 4)) then3329 not ((GameMode = cMovie) and (MovieSpeed = 4)) then 3330 3330 begin 3331 3331 Assert(NewPlayer = Me); … … 6023 6023 begin // attack -- search enemy unit 6024 6024 if (MyModel[MyUn[UnFocus].mix].Attack = 0) and 6025 not ((MyModel[MyUn[UnFocus].mix].Cap[mcBombs] > 0) and6025 not ((MyModel[MyUn[UnFocus].mix].Cap[mcBombs] > 0) and 6026 6026 (MyUn[UnFocus].Flags and unBombsLoaded <> 0)) then 6027 6027 begin … … 7619 7619 ((MyRO.Wonder[woGardens].EffectiveOwner = Me) or 7620 7620 (Tile and fTerrain <> fArctic) and (Tile and fTerrain <> fDesert)) and 7621 not ((mox.Domain = dAir) and (Tile and fCity = 0) and7621 not ((mox.Domain = dAir) and (Tile and fCity = 0) and 7622 7622 (Tile and fTerImp <> tiBase)); 7623 mStay.Visible := not ((mox.Domain = dAir) and (Tile and fCity = 0) and7623 mStay.Visible := not ((mox.Domain = dAir) and (Tile and fCity = 0) and 7624 7624 (Tile and fTerImp <> tiBase)); 7625 7625 mCity.Visible := Extended and (mox.Kind = mkSettler) or
Note:
See TracChangeset
for help on using the changeset viewer.