Changeset 53 for trunk/Forms/UFormMain.pas
- Timestamp:
- Jan 4, 2022, 3:27:03 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormMain.pas
r52 r53 55 55 procedure TimerEngineTickTimer(Sender: TObject); 56 56 private 57 OriginalBounds: TRect;58 OriginalWindowState: TWindowState;59 ScreenBounds: TRect;60 57 StartTime: TDateTime; 61 58 Drawing: Boolean; … … 92 89 StartTime := NowPrecise; 93 90 //Engine.Draw; 94 Engine.Lock.Acquire; 95 try 96 //StatusBar1.Panels[1].Text := IntToStr(TPlayer(Engine.Players[0]).Position.X) + ', ' + 97 // IntToStr(TPlayer(Engine.Players[0]).Position.Y) + ' ' + 98 // IntToStr(TPlayer(Engine.Players[0]).Direction); 99 StatusBar1.Panels[2].Text := FloatToStr(RoundTo(Engine.DrawDuration / OneMillisecond, -2)); 100 StatusBar1.Panels[3].Text := Format(SRound, [IntToStr(Engine.CurrentRound), 101 IntToStr(Engine.MaxRound)]); 102 finally 103 Engine.Lock.Release; 91 if Assigned(Engine) then begin 92 Engine.Lock.Acquire; 93 try 94 //StatusBar1.Panels[1].Text := IntToStr(TPlayer(Engine.Players[0]).Position.X) + ', ' + 95 // IntToStr(TPlayer(Engine.Players[0]).Position.Y) + ' ' + 96 // IntToStr(TPlayer(Engine.Players[0]).Direction); 97 StatusBar1.Panels[2].Text := FloatToStr(RoundTo(Engine.DrawDuration / OneMillisecond, -2)); 98 StatusBar1.Panels[3].Text := Format(SRound, [IntToStr(Engine.CurrentRound), 99 IntToStr(Engine.MaxRound)]); 100 finally 101 Engine.Lock.Release; 102 end; 104 103 end; 105 104 finally
Note:
See TracChangeset
for help on using the changeset viewer.