Changeset 82 for trunk/Forms/UFormMain.pas
- Timestamp:
- Nov 5, 2014, 9:51:30 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormMain.pas
r79 r82 128 128 begin 129 129 DrawStart := Now; 130 if Assigned(Core. Game.CurrentPlayer) then131 with Core. Game.CurrentPlayer do begin130 if Assigned(Core.Player) then 131 with Core.Player do begin 132 132 View.DestRect := Bounds(0, 0, PaintBox1.Width, PaintBox1.Height); 133 133 if csOpaque in PaintBox1.ControlStyle then begin … … 151 151 procedure TFormMain.PaintBox1Resize(Sender: TObject); 152 152 begin 153 if Assigned(Core. Game.CurrentPlayer) then154 with Core. Game.CurrentPlayer do153 if Assigned(Core.Player) then 154 with Core.Player do 155 155 View.DestRect := Bounds(0, 0, PaintBox1.Width, PaintBox1.Height); 156 156 Redraw; … … 240 240 MapRect: TRect; 241 241 begin 242 with Core .Game, CurrentPlayer, View do begin242 with Core, Game, Player, View do begin 243 243 MapRect := Map.GetPixelRect; 244 244 Factor := FloatPoint((DestRect.Right - DestRect.Left) / (MapRect.Right - MapRect.Left), … … 271 271 procedure TFormMain.AZoomInExecute(Sender: TObject); 272 272 begin 273 with Core. Game.CurrentPlayer do begin273 with Core.Player do begin 274 274 View.Zoom := View.Zoom * ZoomFactor; 275 275 end; … … 281 281 D: TPoint; 282 282 begin 283 with Core. Game.CurrentPlayer do begin283 with Core.Player do begin 284 284 //D := Point(Trunc(MousePos.X - View.Left / ViewZoom), 285 285 // Trunc(MousePos.Y - View.Top / ViewZoom));
Note:
See TracChangeset
for help on using the changeset viewer.