diff options
author | Emmanuel Barroga <emmanuelbarroga@gmail.com> | 2019-06-12 20:37:51 -0700 |
---|---|---|
committer | Emmanuel Barroga <emmanuelbarroga@gmail.com> | 2019-06-13 08:53:48 -0700 |
commit | 2cce5699eaeb97db3a5fb82f31acd277443b6c08 (patch) | |
tree | ed25e32860b21a50cb2d296276a4b0e432ceeaf7 /core/engine.cpp | |
parent | a7459347615749875d899da308ae33097347b789 (diff) | |
download | redot-engine-2cce5699eaeb97db3a5fb82f31acd277443b6c08.tar.gz |
Limit Physics Process FPS above 0
Resolves: #19734
Diffstat (limited to 'core/engine.cpp')
-rw-r--r-- | core/engine.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/engine.cpp b/core/engine.cpp index 9607dedb3c..50822244cf 100644 --- a/core/engine.cpp +++ b/core/engine.cpp @@ -38,6 +38,7 @@ void Engine::set_iterations_per_second(int p_ips) { + ERR_FAIL_COND(p_ips <= 0); ips = p_ips; } int Engine::get_iterations_per_second() const { |