Merge pull request #37742 from madmiraal/fix-engine-get_target_fps

Fix Engine get_target_fps() returning float instead of int.
This commit is contained in:
Rémi Verschelde 2020-04-10 10:06:18 +02:00 committed by GitHub
commit 0cbcb7a6e6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -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;
}

View file

@ -86,7 +86,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; }