Changeset 531 for trunk/GameServer.pas
- Timestamp:
- Mar 27, 2024, 12:31:14 PM (8 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GameServer.pas
r496 r531 2697 2697 ShowShipChange: TShowShipChange; 2698 2698 ShowNegoData: TShowNegoData; 2699 logged, ok, HasShipChanged, AllHumansDead, OfferFullySupported: Boolean;2699 Logged, Ok, HasShipChanged, AllHumansDead, OfferFullySupported: Boolean; 2700 2700 begin 2701 2701 if Command = sTurn then … … 2779 2779 FormerCLState := CL.State; 2780 2780 CL.Put(Command, Player, Subject, @Data); 2781 logged := True;2781 Logged := True; 2782 2782 end 2783 2783 else 2784 logged := False;2784 Logged := False; 2785 2785 2786 2786 case Command of … … 3222 3222 if Command = sReload then 3223 3223 begin 3224 ok := (Difficulty[0] = 0) and (bix[0].Kind <> btNoTerm) and3224 Ok := (Difficulty[0] = 0) and (bix[0].Kind <> btNoTerm) and 3225 3225 (Integer(Data) >= 0) and (Integer(Data) < GTurn); 3226 3226 for p1 := 1 to nPl - 1 do 3227 3227 if bix[p1].Kind = btTerm then 3228 ok := False;3228 Ok := False; 3229 3229 // allow reload in AI-only games only 3230 3230 end 3231 3231 else 3232 ok := Player = 0;3233 if ok then3232 Ok := Player = 0; 3233 if Ok then 3234 3234 begin 3235 3235 if (Command = sBreak) or (Command = sResign) then … … 3351 3351 p1 := pTurn; 3352 3352 if (Command and not sExecute = scDipBreak and not sExecute) and 3353 (LastEndClientCommand <> scDipBreak) then // ok3353 (LastEndClientCommand <> scDipBreak) then // Ok 3354 3354 else if (Command and not sExecute = scDipNotice and not sExecute) and 3355 3355 ((LastEndClientCommand = scDipCancelTreaty) or 3356 (LastEndClientCommand = scDipBreak)) then // ok3356 (LastEndClientCommand = scDipBreak)) then // Ok 3357 3357 else if (Command and not sExecute = scDipAccept and not sExecute) and 3358 3358 (LastEndClientCommand = scDipOffer) then … … 3691 3691 if (Mode = moPlaying) and (Subject = adMilitary) then 3692 3692 IntServer(sIntSetDevModel, Player, 0, DevModel.Kind); 3693 // save DevModel, because sctModel commands are not logged3693 // save DevModel, because sctModel commands are not Logged 3694 3694 ResearchTech := Subject; 3695 3695 end; … … 4478 4478 else 4479 4479 begin 4480 if logged then4480 if Logged then 4481 4481 CL.State := FormerCLState; 4482 4482 if (Result < rExecuted) and (Command >= sExecute) then
Note:
See TracChangeset
for help on using the changeset viewer.