summaryrefslogtreecommitdiff
path: root/src/interface
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-08-21 11:27:13 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-08-21 11:27:13 (GMT)
commit7b8647cf152f575dd9a210b9d8b6ca5aebe388e8 (patch)
tree21acd82ada23ae310805026bf9d09e5b6b595417 /src/interface
parent4b8ebe4abd98d65c97cf1dbd571d448f53669bc3 (diff)
downloadpowder-7b8647cf152f575dd9a210b9d8b6ca5aebe388e8.zip
powder-7b8647cf152f575dd9a210b9d8b6ca5aebe388e8.tar.gz
Add missing files from e54eeae
Diffstat (limited to 'src/interface')
-rw-r--r--src/interface/Engine.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/interface/Engine.cpp b/src/interface/Engine.cpp
index 0d709e6..1a8ad95 100644
--- a/src/interface/Engine.cpp
+++ b/src/interface/Engine.cpp
@@ -1,6 +1,7 @@
#include <iostream>
#include <stack>
#include <cstdio>
+#include <time.h>
#include "Config.h"
#include "interface/Window.h"
@@ -25,7 +26,8 @@ Engine::Engine():
FrameIndex(0),
Fullscreen(false),
Scale(1),
- break_(false)
+ break_(false),
+ lastTick(0)
{
}
@@ -152,6 +154,7 @@ void Engine::Tick()
state_->DoTick(dt);
+ lastTick = clock();
if(windowOpenState<1.0f)
{
if(lastBuffer)