diff options
author | Juan Linietsky <reduzio@gmail.com> | 2015-10-17 10:45:16 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2015-10-17 10:45:16 -0300 |
commit | 1b5622fb9b4b3c40f6841b60087498741adadbe4 (patch) | |
tree | fedff92db85f2de422313b7e7be2dec43e4419b7 | |
parent | b411f8f732db71c5e259a19a3bbd7723d9ab6d54 (diff) | |
parent | 32b52e80411d5bf23fc6add0a5ec67a24690c847 (diff) |
Merge pull request #2395 from MrMormon/patch-1
Fixed misspelled local variable for code clarity
-rw-r--r-- | main/main.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/main/main.cpp b/main/main.cpp index 6f7a56b052..9cd190a0e8 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -1544,9 +1544,9 @@ bool Main::iteration() { OS::get_singleton()->delay_usec( OS::get_singleton()->get_frame_delay()*1000 ); } - int taret_fps = OS::get_singleton()->get_target_fps(); - if (taret_fps>0) { - uint64_t time_step = 1000000L/taret_fps; + int target_fps = OS::get_singleton()->get_target_fps(); + if (target_fps>0) { + uint64_t time_step = 1000000L/target_fps; target_ticks += time_step; uint64_t current_ticks = OS::get_singleton()->get_ticks_usec(); if (current_ticks<target_ticks) OS::get_singleton()->delay_usec(target_ticks-current_ticks); |