Changeset 76 for trunk/UCore.pas


Ignore:
Timestamp:
Oct 5, 2014, 1:34:43 PM (10 years ago)
Author:
chronos
Message:
  • Modified: More changes to support game load from file.
  • Fixed: Require at least one player in new game.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UCore.pas

    r74 r76  
    187187    Game.LoadFromFile(OpenDialog1.FileName);
    188188    LastMapFileName := OpenDialog1.FileName;
     189    with Core.Game.CurrentPlayer do
     190      View.DestRect := Bounds(0, 0, FormMain.PaintBox1.Width, FormMain.PaintBox1.Height);
     191    FormMain.AZoomAll.Execute;
    189192    FormMain.Redraw;
    190193  end;
Note: See TracChangeset for help on using the changeset viewer.