Changeset 558 for trunk/LocalPlayer
- Timestamp:
- Apr 25, 2024, 6:31:34 PM (8 months ago)
- Location:
- trunk/LocalPlayer
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
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;
Note:
See TracChangeset
for help on using the changeset viewer.