Changeset 558
- Timestamp:
- Apr 25, 2024, 6:31:34 PM (7 months ago)
- Location:
- trunk
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/CityProcessing.pas
r550 r558 738 738 begin { all citizens were working -- worst tile no longer exploited } 739 739 Assert(1 shl V21 and Tiles <> 0); 740 Tiles := Tiles and not (1 shl V21);740 Tiles := Tiles and not (1 shl V21); 741 741 UsedByCity[TileLoc] := -1; 742 742 end … … 751 751 begin { disorder -- don't exploit tile } 752 752 Assert(1 shl V21 and Tiles <> 0); 753 Tiles := Tiles and not (1 shl V21);753 Tiles := Tiles and not (1 shl V21); 754 754 UsedByCity[TileLoc] := -1; 755 755 end; … … 841 841 and (FoodSurplus < 2)) and (FoodSurplus > 0) then 842 842 Inc(Money, FoodSurplus) 843 else if not (Disorder and (FoodSurplus > 0)) then843 else if not (Disorder and (FoodSurplus > 0)) then 844 844 begin { calculate new food storage } 845 845 Food := Food + FoodSurplus; -
trunk/Database.pas
r550 r558 889 889 for I := 0 to 11 do 890 890 begin 891 RealMap[RareLoc[I]] := RealMap[RareLoc[I]] and not (fTerrain or fSpecial) or891 RealMap[RareLoc[I]] := RealMap[RareLoc[I]] and not (fTerrain or fSpecial) or 892 892 (fDesert or fDeadLands); 893 893 for dy := -1 to 1 do … … 1489 1489 begin 1490 1490 RealMap[StartLoc0[p1]] := RealMap[StartLoc0[p1]] and 1491 not (fTerrain or fSpecial) or fGrass or fSpecial1;1491 not (fTerrain or fSpecial) or fGrass or fSpecial1; 1492 1492 CntGood := 1; 1493 1493 CntGoodGrass := 1; … … 1512 1512 then 1513 1513 begin 1514 RealMap[Loc1] := RealMap[Loc1] and not (fTerrain or fSpecial)1514 RealMap[Loc1] := RealMap[Loc1] and not (fTerrain or fSpecial) 1515 1515 or fGrass; 1516 1516 RealMap[Loc1] := RealMap[Loc1] or ActualSpecialTile(Loc1) shl 5; … … 1698 1698 ResourceMask[P] := $FFFFFFFF 1699 1699 else 1700 ResourceMask[P] := $FFFFFFFF and not (fSpecial2 or fModern);1700 ResourceMask[P] := $FFFFFFFF and not (fSpecial2 or fModern); 1701 1701 GrWallContinent[P] := -1; 1702 1702 … … 1899 1899 if Terrain[NewTile and fTerrain].IrrEff = 0 then 1900 1900 begin 1901 NewTile := NewTile and not (fPrefStartPos or fStartPos);1901 NewTile := NewTile and not (fPrefStartPos or fStartPos); 1902 1902 if (NewTile and fTerImp = tiIrrigation) or (NewTile and fTerImp = tiFarm) 1903 1903 then … … 2110 2110 Inc(TestDet, 1 shl 28) 2111 2111 else if (Domain = dGround) and (PModel.Cap[mcFanatic] > 0) and 2112 not (RW[Defender].Government in [gRepublic, gDemocracy, gFuture]) then2112 not (RW[Defender].Government in [gRepublic, gDemocracy, gFuture]) then 2113 2113 Inc(TestDet, 4 shl 28) // fanatic ground units always defend 2114 2114 else if PModel.Flags and mdZOC <> 0 then … … 2427 2427 Inc(Discovered[pTell]); 2428 2428 if euix >= -1 then 2429 Map[Loc] := Map[Loc] and not (fUnit or fCity or fOwned or fOwnZoCUnit) or2429 Map[Loc] := Map[Loc] and not (fUnit or fCity or fOwned or fOwnZoCUnit) or 2430 2430 (Tile and $07FFFFFF or AddFlags) and 2431 2431 (fUnit or fCity or fOwned or fOwnZoCUnit) … … 2439 2439 MapObservedLast[Loc] := GTurn 2440 2440 end; 2441 ObserveLevel[Loc] := ObserveLevel[Loc] and not (3 shl (2 * pTell)) or2441 ObserveLevel[Loc] := ObserveLevel[Loc] and not (3 shl (2 * pTell)) or 2442 2442 Cardinal(Level) shl (2 * pTell); 2443 2443 end; … … 2653 2653 else if (Occupant[Loc] <> P) or CityChange then 2654 2654 begin // city or enemy unit update necessary, call DiscoverTile 2655 ObserveLevel[Loc] := ObserveLevel[Loc] and not (3 shl (2 * P));2655 ObserveLevel[Loc] := ObserveLevel[Loc] and not (3 shl (2 * P)); 2656 2656 DiscoverTile(Loc, P, P, OldLevel, False, euix); 2657 2657 end … … 3003 3003 begin 3004 3004 Job := jNone; 3005 Flags := Flags and not (unFortified or unMountainDelay);3005 Flags := Flags and not (unFortified or unMountainDelay); 3006 3006 Loc0 := Loc; 3007 3007 end; … … 3139 3139 dxdy(UsedByCity[FoundLoc], FoundLoc, dx, dy); 3140 3140 V21 := (dy + 3) shl 2 + (dx + 3) shr 1; 3141 RW[p1].City[cix1].Tiles := RW[p1].City[cix1].Tiles and not (1 shl V21);3141 RW[p1].City[cix1].Tiles := RW[p1].City[cix1].Tiles and not (1 shl V21); 3142 3142 end; 3143 3143 Tiles := 1 shl 13; { exploit central tile } … … 3232 3232 V21_to_Loc(Loc, Radius); 3233 3233 for V21 := 1 to 26 do 3234 if Tiles and (1 shl V21) and not (1 shl CityOwnTile) <> 0 then3234 if Tiles and (1 shl V21) and not (1 shl CityOwnTile) <> 0 then 3235 3235 begin 3236 3236 Loc1 := Radius[V21]; … … 3239 3239 (RW[pNew].Treaty[Occupant[Loc1]] < trAlliance) then 3240 3240 begin // tile can't remain exploited 3241 Tiles := Tiles and not (1 shl V21);3241 Tiles := Tiles and not (1 shl V21); 3242 3242 UsedByCity[Loc1] := -1; 3243 3243 end; … … 3302 3302 RealMap[Loc] := RealMap[Loc] and not fTerrain or 3303 3303 Cardinal(ChangedTerrain); 3304 RealMap[Loc] := RealMap[Loc] and not (3 shl 5) or3304 RealMap[Loc] := RealMap[Loc] and not (3 shl 5) or 3305 3305 ActualSpecialTile(Loc) shl 5; 3306 3306 end; … … 3314 3314 RealMap[Loc] := RealMap[Loc] and not fTerrain or 3315 3315 Cardinal(ChangedTerrain); 3316 RealMap[Loc] := RealMap[Loc] and not (3 shl 5) or3316 RealMap[Loc] := RealMap[Loc] and not (3 shl 5) or 3317 3317 ActualSpecialTile(Loc) shl 5; 3318 3318 end; … … 3328 3328 RealMap[Loc] := RealMap[Loc] and not fTerrain or 3329 3329 Cardinal(ChangedTerrain); 3330 RealMap[Loc] := RealMap[Loc] and not (3 shl 5) or3330 RealMap[Loc] := RealMap[Loc] and not (3 shl 5) or 3331 3331 ActualSpecialTile(Loc) shl 5; 3332 if not (RealMap[Loc] and fTerrain in TerrType_Canalable) then3332 if not (RealMap[Loc] and fTerrain in TerrType_Canalable) then 3333 3333 begin 3334 3334 RemoveDomainUnits(dSea, P, Loc); … … 3376 3376 (ObserveLevel[Loc] shr (2 * p1) and 3 > lNoObserve) then 3377 3377 RW[p1].Map[Loc] := RW[p1].Map[Loc] and 3378 not (fTerrain or fSpecial or fTerImp or fRoad or fRR or fCanal or3378 not (fTerrain or fSpecial or fTerImp or fRoad or fRR or fCanal or 3379 3379 fPoll) or RealMap[Loc] and (fTerrain or fSpecial or fTerImp or 3380 3380 fRoad or fRR or fCanal or fPoll); … … 3564 3564 RW[pTarget].EnemyCity[cix].Loc := -1; 3565 3565 3566 Tile := Tile and (not (fSpecial or fModern) or ResourceMask[pTarget]);3566 Tile := Tile and (not (fSpecial or fModern) or ResourceMask[pTarget]); 3567 3567 Tile := Tile or (RW[pTarget].Map[Loc] and fModern); 3568 3568 if (Tile and fTerrain = RW[pTarget].Map[Loc] and fTerrain) then … … 3573 3573 RW[pTarget].Map[Loc] := RW[pTarget].Map[Loc] and fInEnemyZoC 3574 3574 // always preserve this flag! 3575 or Tile and not (fUnit or fHiddenUnit or fStealthUnit or fObserved or3575 or Tile and not (fUnit or fHiddenUnit or fStealthUnit or fObserved or 3576 3576 fSpiedOut or fOwned or fInEnemyZoC or fOwnZoCUnit or fPeace or fGrWall); 3577 3577 if RW[pSender].Territory[Loc] <> RW[pTarget].Territory[Loc] then … … 3664 3664 RecalcMapZoC(pTarget); 3665 3665 end; 3666 if not (NewTreaty in [trPeace, TrFriendlyContact]) then3666 if not (NewTreaty in [trPeace, TrFriendlyContact]) then 3667 3667 begin 3668 3668 RW[pSender].EvaStart[pTarget] := -PeaceEvaTurns - 1; … … 3910 3910 begin 3911 3911 for I := 0 to nAdv - 1 do // give all techs to player p1 3912 if not (I in FutureTech) and (RW[p1].Tech[I] < tsApplicable) then3912 if not (I in FutureTech) and (RW[p1].Tech[I] < tsApplicable) then 3913 3913 begin 3914 3914 RW[p1].Tech[I] := tsCheat; -
trunk/GameServer.pas
r550 r558 602 602 ($7F01FFFF or fPrefStartPos or fStartPos) or ($F shl 27); 603 603 if RealMap[Loc1] and (fTerrain or fSpecial) = fSwamp or fSpecial2 then 604 RealMap[Loc1] := RealMap[Loc1] and not (fTerrain or fSpecial) or604 RealMap[Loc1] := RealMap[Loc1] and not (fTerrain or fSpecial) or 605 605 (fSwamp or fSpecial1); 606 606 if (RealMap[Loc1] and fDeadLands <> 0) and 607 607 (RealMap[Loc1] and fTerrain <> fArctic) then 608 RealMap[Loc1] := RealMap[Loc1] and not (fTerrain or fSpecial)608 RealMap[Loc1] := RealMap[Loc1] and not (fTerrain or fSpecial) 609 609 or fDesert; 610 610 end; … … 1647 1647 V21_to_Loc(Loc, Radius); 1648 1648 for V21 := 1 to 26 do 1649 if Tiles and (1 shl V21) and not (1 shl CityOwnTile) <> 0 then1649 if Tiles and (1 shl V21) and not (1 shl CityOwnTile) <> 0 then 1650 1650 begin 1651 1651 Loc1 := Radius[V21]; … … 1658 1658 (Treaty[Occupant[Loc1]] < trPeace) then 1659 1659 begin 1660 Tiles := Tiles and not (1 shl V21);1660 Tiles := Tiles and not (1 shl V21); 1661 1661 UsedByCity[Loc1] := -1; 1662 1662 Flags := Flags or chSiege; … … 1793 1793 begin // nation made extinct 1794 1794 Happened := Happened or phExtinct; 1795 GAlive := GAlive and not (1 shl pTurn);1795 GAlive := GAlive and not (1 shl pTurn); 1796 1796 Stat[stPop, pTurn, GTurn] := 0; 1797 1797 Stat[stMil, pTurn, GTurn] := 0; … … 1873 1873 end; 1874 1874 end; 1875 if WinOnAlone and (GAlive and not (1 shl pTurn or 1) = 0) then1875 if WinOnAlone and (GAlive and not (1 shl pTurn or 1) = 0) then 1876 1876 GWinner := 1 shl pTurn; // break if only one nation left 1877 1877 … … 2175 2175 GiveCivilReport(P, MoveInfo.Defender); 2176 2176 for I := 0 to nAdv - 1 do 2177 if not (I in FutureTech) and (RW[P].Tech[I] < tsSeen) and2177 if not (I in FutureTech) and (RW[P].Tech[I] < tsSeen) and 2178 2178 (RW[MoveInfo.Defender].Tech[I] >= tsApplicable) then 2179 2179 begin … … 2185 2185 if Mode = moPlaying then 2186 2186 LogCheckBorders(P, nCity - 1, MoveInfo.Defender); 2187 {$IFOPT O-} if Mode < moPlaying then 2188 InvalidTreatyMap := not(1 shl P); {$ENDIF} 2187 {$IFOPT O-} 2188 if Mode < moPlaying then 2189 InvalidTreatyMap := not (1 shl P); 2190 {$ENDIF} 2189 2191 // territory should not be considered for the rest of the command 2190 2192 // execution, because during loading a game it's incorrect before … … 4113 4115 if (Subject >= RW[Player].nUn) or (RW[Player].Un[Subject].Loc < 0) then 4114 4116 Result := eInvalid 4115 else if not (RW[Player].Model[RW[Player].Un[Subject].mix].Kind4117 else if not (RW[Player].Model[RW[Player].Un[Subject].mix].Kind 4116 4118 in [mkSettler, mkSlaves]) and 4117 4119 (RW[Player].Un[Subject].Flags and unConscripts = 0) then … … 4425 4427 begin 4426 4428 if (OldImp < 0) or (OldImp >= nImp) or 4427 not (Imp[OldImp].Kind in [ikCommon, ikNatLocal, ikNatGlobal]) then4429 not (Imp[OldImp].Kind in [ikCommon, ikNatLocal, ikNatGlobal]) then 4428 4430 Result := eInvalid 4429 4431 else 4430 4432 with RW[Player].City[Subject] do 4431 4433 if (Built[OldImp] = 0) or (Project and cpImp = 0) or 4432 not (Imp[Project and cpIndex].Kind in [ikCommon, ikNatLocal,4434 not (Imp[Project and cpIndex].Kind in [ikCommon, ikNatLocal, 4433 4435 ikNatGlobal]) then 4434 4436 Result := eInvalid -
trunk/LocalPlayer/CityType.pas
r536 r558 158 158 nPool := 0; 159 159 for iix := nWonder to nImp - 1 do 160 if not (iix in Listed) and (Imp[iix].Kind = ikCommon) and (iix <> imTrGoods)160 if not (iix in Listed) and (Imp[iix].Kind = ikCommon) and (iix <> imTrGoods) 161 161 and (Imp[iix].Preq <> preNA) and 162 162 ((Imp[iix].Preq = preNone) or (MyRO.Tech[Imp[iix].Preq] >= tsApplicable)) -
trunk/LocalPlayer/Draft.pas
r550 r558 419 419 else 420 420 Result := 30000 + AdvValue[FeaturePreq]; 421 if not (fix in AutoFeature) then421 if not (fix in AutoFeature) then 422 422 Inc(Result, 90000); 423 423 end; … … 449 449 function TDraftDlg.IsFeatureInList(D, I: Integer): Boolean; 450 450 begin 451 Result := not (I in AutoFeature) and (1 shl D and Feature[I].Domains <> 0) and451 Result := not (I in AutoFeature) and (1 shl D and Feature[I].Domains <> 0) and 452 452 (Feature[I].Preq <> preNA) and 453 453 ((Feature[I].Preq = preNone) or (Feature[I].Preq = preSun) and … … 531 531 if (X >= xFeature - 21) and (X < ClientWidth) and (ssShift in Shift) then 532 532 MainScreen.HelpDlg.ShowNewContent(WindowModeMakePersistent(FWindowMode), hkFeature, Code[I]) 533 else if not (Code[I] in AutoFeature) then533 else if not (Code[I] in AutoFeature) then 534 534 begin 535 535 if (Code[I] < mcFirstNonCap) and (X >= xFeature - 21) and -
trunk/LocalPlayer/Enhance.pas
r531 r558 360 360 if NewJob in [jIrr, jFarm, jTrans] then 361 361 RemoveJob(jMine); 362 if (NewJob = jRR) and not (jRoad in Done) then362 if (NewJob = jRR) and not (jRoad in Done) then 363 363 begin 364 364 MyData.EnhancementJobs[Page, Stage] := jRoad; 365 365 Inc(Stage); 366 366 end; 367 if (NewJob = jFarm) and not (jIrr in Done) then367 if (NewJob = jFarm) and not (jIrr in Done) then 368 368 begin 369 369 MyData.EnhancementJobs[Page, Stage] := jIrr; -
trunk/LocalPlayer/Nego.pas
r549 r558 373 373 begin // check techs 374 374 for I := 0 to nAdv - 1 do 375 if not (I in FutureTech) then375 if not (I in FutureTech) then 376 376 if (MyRO.Tech[I] < tsSeen) and 377 377 (MyRO.EnemyReport[DipMem[Me].pContact].Tech[I] >= tsApplicable) then … … 732 732 end; 733 733 Price := ButtonPrice[TButtonN(Sender).Tag and $FF]; 734 if not (Price shr 24 in OppoAllowed) then734 if not (Price shr 24 in OppoAllowed) then 735 735 Exit; 736 736 case Price of … … 845 845 end; 846 846 Price := ButtonPrice[TButtonN(Sender).Tag and $FF]; 847 if not (Price shr 24 in MyAllowed) then847 if not (Price shr 24 in MyAllowed) then 848 848 Exit; 849 849 case Price of … … 936 936 Exit; 937 937 NewCommand := TButtonN(Sender).Tag and $FF + scDipStart; 938 if not (NewCommand - scDipStart in CommandAllowed) then938 if not (NewCommand - scDipStart in CommandAllowed) then 939 939 Exit; 940 940 if (NewCommand = scDipCancelTreaty) and -
trunk/LocalPlayer/Select.pas
r550 r558 139 139 procedure TListDlg.FormCloseQuery(Sender: TObject; var CanClose: Boolean); 140 140 begin 141 CanClose := Closable or not (Kind in MustChooseKind);141 CanClose := Closable or not (Kind in MustChooseKind); 142 142 end; 143 143 … … 918 918 then 919 919 Include(Shift, ssShift); // don't close list window 920 if (ssLeft in Shift) and not (ssShift in Shift) then920 if (ssLeft in Shift) and not (ssShift in Shift) then 921 921 begin 922 922 if Selected <> -2 then … … 1089 1089 TryAddImpLine(0, I + cpImp); 1090 1090 for I := nWonder to nImp - 1 do 1091 if not (Imp[I].Kind in [ikCommon, ikTrGoods]) and1091 if not (Imp[I].Kind in [ikCommon, ikTrGoods]) and 1092 1092 ((MyRO.NatBuilt[I] = 0) or (Imp[I].Kind = ikNatLocal)) then 1093 1093 TryAddImpLine(0, I + cpImp); … … 1182 1182 Inc(Lines[0]); 1183 1183 for I := 0 to nAdv - 1 do 1184 if not (I in FutureTech) and (MyRO.Tech[I] < tsApplicable) and1184 if not (I in FutureTech) and (MyRO.Tech[I] < tsApplicable) and 1185 1185 ((AdvValue[I] < 2000) or (MyRO.Tech[adMassProduction] > tsNA)) and 1186 1186 ((AdvValue[I] < 1000) or (MyRO.Tech[adScience] > tsNA)) then … … 1194 1194 begin 1195 1195 for I := 0 to nAdv - 1 do 1196 if not (I in FutureTech) and (MyRO.Tech[I] >= tsApplicable) and1196 if not (I in FutureTech) and (MyRO.Tech[I] >= tsApplicable) and 1197 1197 (MyRO.EnemyReport[DipMem[Me].pContact].Tech[I] < tsSeen) then 1198 1198 begin … … 1210 1210 begin 1211 1211 for I := 0 to nAdv - 1 do 1212 if not (I in FutureTech) and (MyRO.Tech[I] < tsSeen) and1212 if not (I in FutureTech) and (MyRO.Tech[I] < tsSeen) and 1213 1213 (MyRO.EnemyReport[DipMem[Me].pContact].Tech[I] >= tsApplicable) then 1214 1214 begin … … 1743 1743 ShowFocus := False; 1744 1744 for I := 0 to nAdv - 1 do 1745 if not (I in FutureTech) and (MyRO.Tech[I] < tsApplicable) and1745 if not (I in FutureTech) and (MyRO.Tech[I] < tsApplicable) and 1746 1746 ((AdvValue[I] < 2000) or (MyRO.Tech[adMassProduction] > tsNA)) and 1747 1747 ((AdvValue[I] < 1000) or (MyRO.Tech[adScience] > tsNA)) and … … 1753 1753 ToggleBtn.Visible := (Kind = kCities) and not Supervising or (Kind = kAdvance) 1754 1754 and ShowFocus or (Kind = kModels) or (Kind = kEModels); 1755 CloseBtn.Visible := not (Kind in MustChooseKind);1755 CloseBtn.Visible := not (Kind in MustChooseKind); 1756 1756 1757 1757 inherited ShowNewContent(NewMode, ForceClose); -
trunk/LocalPlayer/Term.pas
r552 r558 1991 1991 for I := 0 to nShipPart - 1 do 1992 1992 if MyRO.Ship[p1].Parts[I] < ShipNeed[I] then 1993 Winners := Winners and not (1 shl p1);1993 Winners := Winners and not (1 shl p1); 1994 1994 end; 1995 1995 Assert(Winners <> 0); … … 3104 3104 else if CurrentMoveInfo.IsAlly then 3105 3105 CurrentMoveInfo.DoShow := 3106 not (mAlNoMoves.Checked or mAlEffectiveMovesOnly.Checked)3106 not (mAlNoMoves.Checked or mAlEffectiveMovesOnly.Checked) 3107 3107 else 3108 3108 CurrentMoveInfo.DoShow := 3109 not (mEnNoMoves.Checked or mEnAttacks.Checked);3109 not (mEnNoMoves.Checked or mEnAttacks.Checked); 3110 3110 end; 3111 3111 // else keep DoShow from cShowMove/cShowAttack … … 3211 3211 else if CurrentMoveInfo.IsAlly then 3212 3212 CurrentMoveInfo.DoShow := not mAlNoMoves.Checked and 3213 not (mAlEffectiveMovesOnly.Checked and3213 not (mAlEffectiveMovesOnly.Checked and 3214 3214 (Command <> cShowCapturing)) 3215 3215 else 3216 3216 CurrentMoveInfo.DoShow := not mEnNoMoves.Checked and 3217 not (mEnAttacks.Checked and (Command <> cShowCapturing));3217 not (mEnAttacks.Checked and (Command <> cShowCapturing)); 3218 3218 if CurrentMoveInfo.DoShow then 3219 3219 begin … … 3804 3804 else 3805 3805 Destination := Status shr 16; 3806 Status := Status and not (usStay or usRecover) or usWaiting;3806 Status := Status and not (usStay or usRecover) or usWaiting; 3807 3807 MoveToLoc(Destination, True); 3808 3808 end; … … 3837 3837 else 3838 3838 begin 3839 Status := Status and not (usStay or usRecover or usEnhance);3839 Status := Status and not (usStay or usRecover or usEnhance); 3840 3840 MoveToLoc(maNextCity, True); 3841 3841 end; … … 5729 5729 if (MouseLoc < 0) or (MouseLoc >= G.lx * G.ly) then 5730 5730 Exit; 5731 if (Button = TMouseButton.mbLeft) and not (ssShift in Shift) then5731 if (Button = TMouseButton.mbLeft) and not (ssShift in Shift) then 5732 5732 begin 5733 5733 DoCenter := True; … … 5753 5753 if MyMap[MouseLoc] and (fDeadLands or fModern) = BrushType and 5754 5754 (fDeadLands or fModern) then 5755 EditTileData.NewTile := MyMap[MouseLoc] and not (fDeadLands or fModern)5755 EditTileData.NewTile := MyMap[MouseLoc] and not (fDeadLands or fModern) 5756 5756 else 5757 EditTileData.NewTile := MyMap[MouseLoc] and not (fDeadLands or fModern)5757 EditTileData.NewTile := MyMap[MouseLoc] and not (fDeadLands or fModern) 5758 5758 or BrushType 5759 5759 else if BrushType and fTerImp <> 0 then … … 5766 5766 (fPrefStartPos or fStartPos) then 5767 5767 EditTileData.NewTile := MyMap[MouseLoc] and 5768 not (fPrefStartPos or fStartPos)5768 not (fPrefStartPos or fStartPos) 5769 5769 else 5770 5770 EditTileData.NewTile := MyMap[MouseLoc] and 5771 not (fPrefStartPos or fStartPos) or BrushType5771 not (fPrefStartPos or fStartPos) or BrushType 5772 5772 else 5773 5773 EditTileData.NewTile := MyMap[MouseLoc] xor BrushType; … … 5839 5839 PanelPaint; 5840 5840 end // own unit 5841 else if (MyMap[MouseLoc] and fSpiedOut <> 0) and not (ssCtrl in Shift) then5841 else if (MyMap[MouseLoc] and fSpiedOut <> 0) and not (ssCtrl in Shift) then 5842 5842 begin 5843 5843 DoCenter := False; … … 5857 5857 end 5858 5858 else if (ClientMode <> cEditMap) and (Button = TMouseButton.mbRight) and 5859 not (ssShift in Shift) then5859 not (ssShift in Shift) then 5860 5860 begin 5861 5861 if Supervising then … … 5933 5933 DestinationMarkON := False; 5934 5934 PaintDestination; 5935 Status := Status and not (usStay or usRecover or usEnhance) or5935 Status := Status and not (usStay or usRecover or usEnhance) or 5936 5936 usWaiting; 5937 5937 MoveToLoc(MouseLoc, False); { goto } … … 6244 6244 Assert(UnFocus >= 0); 6245 6245 MyUn[UnFocus].Status := MyUn[UnFocus].Status and 6246 not (usStay or usRecover);6246 not (usStay or usRecover); 6247 6247 for uix := 0 to MyRO.nUn - 1 do 6248 6248 if MyUn[uix].Master = UnFocus then … … 7400 7400 with TUn(MyUn[UnFocus]) do begin 7401 7401 if (Sender = mUtilize) and 7402 not (Server(sRemoveUnit - sExecute, Me, UnFocus, nil^) = eUtilized) then7402 not (Server(sRemoveUnit - sExecute, Me, UnFocus, nil^) = eUtilized) then 7403 7403 begin 7404 7404 SimpleMessage(Phrases2.Lookup('SHIP_UTILIZE')); … … 7990 7990 r0 := CreateRectRgn(Left, Top, Rigth, Bottom); 7991 7991 for I := 0 to ControlCount - 1 do 7992 if not (Controls[I] is TArea) and Controls[I].Visible then7992 if not (Controls[I] is TArea) and Controls[I].Visible then 7993 7993 begin 7994 7994 with Controls[I].BoundsRect do … … 8045 8045 CityRepMask := CityRepMask or (1 shl (Tag shr 8)) 8046 8046 else 8047 CityRepMask := CityRepMask and not (1 shl (Tag shr 8));8047 CityRepMask := CityRepMask and not (1 shl (Tag shr 8)); 8048 8048 end; 8049 8049 end; -
trunk/Messg.pas
r554 r558 56 56 begin 57 57 Button1.Visible := True; 58 Button2.Visible := not (Kind in [mkOK]);58 Button2.Visible := not (Kind in [mkOK]); 59 59 if Button2.Visible then 60 60 Button1.Left := 101 -
trunk/Packages/CevoComponents/BaseWin.pas
r496 r558 263 263 ClientHeight - BottomFrame); 264 264 for I := 0 to ControlCount - 1 do 265 if not (Controls[I] is TArea) and Controls[I].Visible then265 if not (Controls[I] is TArea) and Controls[I].Visible then 266 266 begin 267 267 with Controls[I].BoundsRect do -
trunk/UnitProcessing.pas
r550 r558 596 596 MultiDamage := 2; 597 597 if (ABaseDamage = HealthAtt) and (PModel.Cap[mcFanatic] > 0) and 598 not (RW[pAtt].Government in [gRepublic, gDemocracy, gFuture]) then598 not (RW[pAtt].Government in [gRepublic, gDemocracy, gFuture]) then 599 599 MultiDamage := MultiDamage * 2; // fanatic attacker died 600 600 EndHealthDef := RW[Defender].Un[Duix].Health - MultiDamage * … … 608 608 begin 609 609 if (DModel.Cap[mcFanatic] > 0) and 610 not (RW[Defender].Government in [gRepublic, gDemocracy, gFuture]) then610 not (RW[Defender].Government in [gRepublic, gDemocracy, gFuture]) then 611 611 MultiDamage := MultiDamage * 2; // fanatic defender died 612 612 if PModel.Cap[mcFirst] > 0 then … … 1359 1359 if Result = eCity then 1360 1360 begin 1361 ObserveLevel[Loc0] := ObserveLevel[Loc0] and not (3 shl (2 * P));1361 ObserveLevel[Loc0] := ObserveLevel[Loc0] and not (3 shl (2 * P)); 1362 1362 Discover21(Loc0, P, lObserveUnhidden, True, True); 1363 1363 // CheckContact; … … 1383 1383 Health := Health - HostileDamage(P, mix, Loc, ToWork[Loc, Job]); 1384 1384 Dec(Movement, ToWork[Loc, Job]); 1385 if not (Job in [jCity, jPillage, jPoll]) then1385 if not (Job in [jCity, jPillage, jPoll]) then 1386 1386 Inc(Worked[P], ToWork[Loc, Job]); 1387 1387 if Job = jCity then … … 1400 1400 end; 1401 1401 {$IFOPT O-} if Mode < moPlaying then 1402 InvalidTreatyMap := not (1 shl P); {$ENDIF}1402 InvalidTreatyMap := not (1 shl P); {$ENDIF} 1403 1403 // territory should not be considered for the rest of the command 1404 1404 // execution, because during loading a game it's incorrect before … … 1417 1417 begin 1418 1418 Dec(ToWork[Loc, Job], Movement); 1419 if not (Job in [jCity, jPillage, jPoll]) then1419 if not (Job in [jCity, jPillage, jPoll]) then 1420 1420 Inc(Worked[P], Movement); 1421 1421 Health := Health - HostileDamage(P, mix, Loc, Movement);
Note:
See TracChangeset
for help on using the changeset viewer.