Commit 96454bc6 authored by Alexander Hirsch's avatar Alexander Hirsch
Browse files

Fix timestamp typo

parent 3d309fc8
......@@ -332,8 +332,8 @@ double Engine::updateTimestamp()
{
const auto now = Clock::now();
auto delta = now - m_timestampe;
m_timestampe = now;
auto delta = now - m_timestamp;
m_timestamp = now;
// cap delta to 100 milliseconds
delta = std::min<Clock::duration>(delta, 50ms);
......@@ -351,8 +351,8 @@ double Engine::updateTimestamp()
{
const auto now = Clock::now();
auto delta = now - m_timestampe;
m_timestampe = now;
auto delta = now - m_timestamp;
m_timestamp = now;
// Large time deltas can cause issues with physics simulations. Capping it
// here affects the whole simulation (not just physics) equally.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment