aboutsummaryrefslogtreecommitdiff
path: root/src/client/clientenvironment.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/clientenvironment.cpp')
-rw-r--r--src/client/clientenvironment.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/client/clientenvironment.cpp b/src/client/clientenvironment.cpp
index 5dc10f48f..d7b3c4950 100644
--- a/src/client/clientenvironment.cpp
+++ b/src/client/clientenvironment.cpp
@@ -34,6 +34,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "settings.h"
#include "shader.h"
#include "content_cao.h"
+#include "porting.h"
#include <algorithm>
#include "client/renderingengine.h"
@@ -513,3 +514,8 @@ void ClientEnvironment::getSelectedActiveObjects(
}
}
}
+
+void ClientEnvironment::updateFrameTime()
+{
+ m_frame_time = porting::getTimeMs();
+}