From 5bd603a542401143d6003c43b163f524227f687d Mon Sep 17 00:00:00 2001 From: Marcel Admiraal Date: Fri, 10 Apr 2020 06:48:22 +0100 Subject: [PATCH] Fix Engine get_target_fps() returning float instead of int. (cherry picked from commit 0b9e95cac59b03ab6048b5cc80a1a8476c35cb90) --- core/engine.cpp | 2 +- core/engine.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/engine.cpp b/core/engine.cpp index 1772cc7c48a..cea676f3ea4 100644 --- a/core/engine.cpp +++ b/core/engine.cpp @@ -60,7 +60,7 @@ void Engine::set_target_fps(int p_fps) { _target_fps = p_fps > 0 ? p_fps : 0; } -float Engine::get_target_fps() const { +int Engine::get_target_fps() const { return _target_fps; } diff --git a/core/engine.h b/core/engine.h index 1aab907ac82..b13fba676b2 100644 --- a/core/engine.h +++ b/core/engine.h @@ -85,7 +85,7 @@ public: float get_physics_jitter_fix() const; virtual void set_target_fps(int p_fps); - virtual float get_target_fps() const; + virtual int get_target_fps() const; virtual float get_frames_per_second() const { return _fps; }