Ignore:
Timestamp:
Sep 9, 2018, 11:45:45 AM (6 years ago)
Author:
chronos
Message:
  • Fixed: Load and start new game after main form is shown so cells can be correctly zoomed to be visible all.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormClient.pas

    r223 r227  
    302302  ToolBar1.Visible := AToolBarVisible.Checked;
    303303  StatusBar1.Visible := AStatusBarVisible.Checked;
    304   AGameEndTurn.Enabled := Assigned(Client.ControlPlayer) and
     304  AGameEndTurn.Enabled := Assigned(Client) and Assigned(Client.ControlPlayer) and
    305305    Client.ControlPlayer.IsAlive and TurnActive;
    306   ASurrender.Enabled := Assigned(Client.ControlPlayer) and
     306  ASurrender.Enabled := Assigned(Client) and Assigned(Client.ControlPlayer) and
    307307    Client.ControlPlayer.IsAlive;
    308308end;
Note: See TracChangeset for help on using the changeset viewer.