Browse Source

get_target_fps and set_target_fps now both use an int

Paul Joannon 7 years ago
parent
commit
a066f896d8
2 changed files with 2 additions and 2 deletions
  1. 1 1
      core/bind/core_bind.cpp
  2. 1 1
      core/bind/core_bind.h

+ 1 - 1
core/bind/core_bind.cpp

@@ -2585,7 +2585,7 @@ void _Engine::set_target_fps(int p_fps) {
 	Engine::get_singleton()->set_target_fps(p_fps);
 }
 
-float _Engine::get_target_fps() const {
+int _Engine::get_target_fps() const {
 	return Engine::get_singleton()->get_target_fps();
 }
 

+ 1 - 1
core/bind/core_bind.h

@@ -656,7 +656,7 @@ public:
 	int get_iterations_per_second() const;
 
 	void set_target_fps(int p_fps);
-	float get_target_fps() const;
+	int get_target_fps() const;
 
 	float get_frames_per_second() const;