Changeset 549 for trunk/LocalPlayer/Term.pas
- Timestamp:
- Apr 21, 2024, 8:55:53 PM (7 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LocalPlayer/Term.pas
r545 r549 1228 1228 IsTreatyDeal := False; 1229 1229 for I := 0 to ReceivedOffer.nDeliver + ReceivedOffer.nCost - 1 do 1230 if ReceivedOffer.Price[I] and opMask = opTreaty then 1230 if ReceivedOffer.Price[I] and opMask = opTreaty then begin 1231 1231 IsTreatyDeal := True; 1232 Break; 1233 end; 1232 1234 if IsTreatyDeal then 1233 1235 Play('NEWTREATY') … … 1466 1468 var 1467 1469 I, cix, mix: Integer; 1468 need: Boolean;1470 Need: Boolean; 1469 1471 mi: TModelInfo; 1470 1472 begin … … 1475 1477 end; 1476 1478 if (sbWonder in Check) and not (sbWonder in SoundPreloadDone) then begin 1477 need := False;1479 Need := False; 1478 1480 for I := 0 to nWonder - 1 do 1479 if MyRO.Wonder[I].CityID <> WonderNotBuiltYet then 1480 need := True; 1481 if need then begin 1481 if MyRO.Wonder[I].CityID <> WonderNotBuiltYet then begin 1482 Need := True; 1483 Break; 1484 end; 1485 if Need then begin 1482 1486 for I := 0 to nWonderBlock - 1 do 1483 1487 PreparePlay(WonderBlock[I]); … … 1630 1634 for I := 0 to nShipPart - 1 do 1631 1635 begin 1632 if Ship1Change[I] > 0 then 1633 Ship1Plus := True; 1634 if Ship2Change[I] > 0 then 1635 Ship2Plus := True; 1636 if Ship1Change[I] > 0 then Ship1Plus := True; 1637 if Ship2Change[I] > 0 then Ship2Plus := True; 1636 1638 end; 1637 1639 if Ship1Plus and Ship2Plus then … … 2140 2142 for cix := 0 to MyRO.nCity - 1 do 2141 2143 if (MyCity[cix].Loc >= 0) and (MyCity[cix].ID = MyRO.Wonder[I].CityID) 2142 then 2144 then begin 2143 2145 OwnWonder := True; 2146 Break; 2147 end; 2144 2148 if MyRO.Wonder[I].CityID <> MyData.ToldWonders[I].CityID then 2145 2149 begin … … 3029 3033 IsTreatyDeal := False; 3030 3034 for I := 0 to ReceivedOffer.nDeliver + ReceivedOffer.nCost - 1 do 3031 if DipMem[Me].SentOffer.Price[I] and opMask = opTreaty then 3035 if DipMem[Me].SentOffer.Price[I] and opMask = opTreaty then begin 3032 3036 IsTreatyDeal := True; 3037 Break; 3038 end; 3033 3039 if IsTreatyDeal then 3034 3040 Play('NEWTREATY') … … 3995 4001 for I := 2 to nGov - 1 do 3996 4002 if (GovPreq[I] <> preNA) and 3997 ((GovPreq[I] = preNone) or (MyRO.Tech[GovPreq[I]] >= tsApplicable)) then 3998 AltGovs := True; 4003 ((GovPreq[I] = preNone) or (MyRO.Tech[GovPreq[I]] >= tsApplicable)) then begin 4004 AltGovs := True; 4005 Break; 4006 end; 3999 4007 4000 4008 if not AltGovs then … … 4296 4304 begin 4297 4305 Result := True; 4298 Exit 4306 Exit; 4299 4307 end; 4300 4308 end … … 4490 4498 Skipped := WasSkipped; 4491 4499 for p1 := 1 to nPl - 1 do 4492 if G.RO[p1] <> nil then 4500 if G.RO[p1] <> nil then begin 4493 4501 Skipped := True; // don't show enemy moves in hotseat mode 4502 Break; 4503 end; 4494 4504 end 4495 4505 else … … 7465 7475 Multi := False; 7466 7476 for p1 := 1 to nPl - 1 do 7467 if G.RO[p1] <> nil then 7477 if G.RO[p1] <> nil then begin 7468 7478 Multi := True; 7479 Break; 7480 end; 7469 7481 mEnemyMovement.Visible := not Multi; 7470 7482 end; … … 7560 7572 for p1 := 0 to nPl - 1 do 7561 7573 if MyRO.Ship[p1].Parts[spComp] + MyRO.Ship[p1].Parts[spPow] + 7562 MyRO.Ship[p1].Parts[spHab] > 0 then 7563 mShips.Enabled := True; 7574 MyRO.Ship[p1].Parts[spHab] > 0 then begin 7575 mShips.Enabled := True; 7576 Break; 7577 end; 7564 7578 end 7565 7579 else if Popup = UnitPopup then … … 7685 7699 if NeedSep then 7686 7700 LastSep := Popup.Items[I]; 7687 NeedSep := False 7701 NeedSep := False; 7688 7702 end 7689 7703 else if Popup.Items[I].Visible then 7690 7704 NeedSep := True; 7691 7705 if (LastSep <> nil) and not NeedSep then 7692 LastSep.Visible := False 7706 LastSep.Visible := False; 7693 7707 end; 7694 7708
Note:
See TracChangeset
for help on using the changeset viewer.