diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-08-09 23:02:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-09 23:02:43 +0200 |
commit | 7bcfc66fb4253fb121008809e4e81c5b704776b7 (patch) | |
tree | 770bb6c7c266c5266f4de3ceab52e756b55bf440 /core/config/engine.cpp | |
parent | 9d9161c71956201875334b6a2a9ca37a7d5d3970 (diff) | |
parent | 84f720966c74d5b37f70e21867e9e3e6a1e44c36 (diff) |
Merge pull request #51294 from aaronfranke/double-time
Diffstat (limited to 'core/config/engine.cpp')
-rw-r--r-- | core/config/engine.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/config/engine.cpp b/core/config/engine.cpp index 0b5b5627af..3ffd8ee46b 100644 --- a/core/config/engine.cpp +++ b/core/config/engine.cpp @@ -46,14 +46,14 @@ int Engine::get_iterations_per_second() const { return ips; } -void Engine::set_physics_jitter_fix(float p_threshold) { +void Engine::set_physics_jitter_fix(double p_threshold) { if (p_threshold < 0) { p_threshold = 0; } physics_jitter_fix = p_threshold; } -float Engine::get_physics_jitter_fix() const { +double Engine::get_physics_jitter_fix() const { return physics_jitter_fix; } @@ -77,11 +77,11 @@ uint32_t Engine::get_frame_delay() const { return _frame_delay; } -void Engine::set_time_scale(float p_scale) { +void Engine::set_time_scale(double p_scale) { _time_scale = p_scale; } -float Engine::get_time_scale() const { +double Engine::get_time_scale() const { return _time_scale; } |