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