diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-03-08 19:51:08 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-03-08 19:51:08 +0000 |
commit | 9c2f87faf5aee8ffad825c05fce01766c65180dd (patch) | |
tree | e5037cc9173aee76cc5013e34d038c6c07a3120f /application/main.cpp | |
parent | Add maxSpeed to rail vehicle class (diff) | |
download | ilt-9c2f87faf5aee8ffad825c05fce01766c65180dd.tar.bz2 ilt-9c2f87faf5aee8ffad825c05fce01766c65180dd.tar.xz ilt-9c2f87faf5aee8ffad825c05fce01766c65180dd.zip |
Move TickDuration type into global scope
Diffstat (limited to 'application/main.cpp')
-rw-r--r-- | application/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/application/main.cpp b/application/main.cpp index 6b22a68..c9caf74 100644 --- a/application/main.cpp +++ b/application/main.cpp @@ -107,7 +107,7 @@ public: while (isRunning) { processInputs(); const auto t_end = std::chrono::high_resolution_clock::now(); - const auto t_passed = std::chrono::duration_cast<WorldObject::TickDuration>(t_end - t_start); + const auto t_passed = std::chrono::duration_cast<TickDuration>(t_end - t_start); world.apply(&WorldObject::tick, t_passed); world.apply<CameraController>(&CameraController::updateCamera, &camera); |