summaryrefslogtreecommitdiffstats
path: root/src/app/app.h
diff options
context:
space:
mode:
authorPiotr Dziwinski <piotrdz@gmail.com>2013-06-13 17:25:58 +0200
committerPiotr Dziwinski <piotrdz@gmail.com>2013-06-13 17:25:58 +0200
commit7cf88118885699a23daa4768285d512fc06d5a2a (patch)
treea054df58b5a3bf1ed7b2231d03fe52df1119aff1 /src/app/app.h
parente8e220085a73e470bf29aa47e63e19d427913962 (diff)
downloadcolobot-7cf88118885699a23daa4768285d512fc06d5a2a.tar.gz
colobot-7cf88118885699a23daa4768285d512fc06d5a2a.tar.bz2
colobot-7cf88118885699a23daa4768285d512fc06d5a2a.zip
Fix for #195
* loading time now is not counted in elapsed time
Diffstat (limited to 'src/app/app.h')
-rw-r--r--src/app/app.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/app/app.h b/src/app/app.h
index 34028c7..6c53cf9 100644
--- a/src/app/app.h
+++ b/src/app/app.h
@@ -234,6 +234,9 @@ public:
//! Returns whether simulation is suspended
bool GetSimulationSuspended() const;
+ //! Resets time counters to account for time spent loading game
+ void ResetTimeAfterLoading();
+
//@{
//! Management of simulation speed
void SetSimulationSpeed(float speed);
@@ -368,6 +371,9 @@ protected:
//! Closes the joystick device
void CloseJoystick();
+ //! Internal procedure to reset time counters
+ void InternalResumeSimulation();
+
//! Resets all performance counters to zero
void ResetPerformanceCounters();
//! Updates performance counters from gathered timer data