Changeset 531 for trunk/GameServer.pas


Ignore:
Timestamp:
Mar 27, 2024, 12:31:14 PM (8 months ago)
Author:
chronos
Message:
  • Modified: Code cleanup.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GameServer.pas

    r496 r531  
    26972697  ShowShipChange: TShowShipChange;
    26982698  ShowNegoData: TShowNegoData;
    2699   logged, ok, HasShipChanged, AllHumansDead, OfferFullySupported: Boolean;
     2699  Logged, Ok, HasShipChanged, AllHumansDead, OfferFullySupported: Boolean;
    27002700begin
    27012701  if Command = sTurn then
     
    27792779    FormerCLState := CL.State;
    27802780    CL.Put(Command, Player, Subject, @Data);
    2781     logged := True;
     2781    Logged := True;
    27822782  end
    27832783  else
    2784     logged := False;
     2784    Logged := False;
    27852785
    27862786  case Command of
     
    32223222        if Command = sReload then
    32233223        begin
    3224           ok := (Difficulty[0] = 0) and (bix[0].Kind <> btNoTerm) and
     3224          Ok := (Difficulty[0] = 0) and (bix[0].Kind <> btNoTerm) and
    32253225            (Integer(Data) >= 0) and (Integer(Data) < GTurn);
    32263226          for p1 := 1 to nPl - 1 do
    32273227            if bix[p1].Kind = btTerm then
    3228               ok := False;
     3228              Ok := False;
    32293229          // allow reload in AI-only games only
    32303230        end
    32313231        else
    3232           ok := Player = 0;
    3233         if ok then
     3232          Ok := Player = 0;
     3233        if Ok then
    32343234        begin
    32353235          if (Command = sBreak) or (Command = sResign) then
     
    33513351          p1 := pTurn;
    33523352        if (Command and not sExecute = scDipBreak and not sExecute) and
    3353           (LastEndClientCommand <> scDipBreak) then // ok
     3353          (LastEndClientCommand <> scDipBreak) then // Ok
    33543354        else if (Command and not sExecute = scDipNotice and not sExecute) and
    33553355          ((LastEndClientCommand = scDipCancelTreaty) or
    3356           (LastEndClientCommand = scDipBreak)) then // ok
     3356          (LastEndClientCommand = scDipBreak)) then // Ok
    33573357        else if (Command and not sExecute = scDipAccept and not sExecute) and
    33583358          (LastEndClientCommand = scDipOffer) then
     
    36913691            if (Mode = moPlaying) and (Subject = adMilitary) then
    36923692              IntServer(sIntSetDevModel, Player, 0, DevModel.Kind);
    3693             // save DevModel, because sctModel commands are not logged
     3693            // save DevModel, because sctModel commands are not Logged
    36943694            ResearchTech := Subject;
    36953695          end;
     
    44784478    else
    44794479    begin
    4480       if logged then
     4480      if Logged then
    44814481        CL.State := FormerCLState;
    44824482      if (Result < rExecuted) and (Command >= sExecute) then
Note: See TracChangeset for help on using the changeset viewer.