2
0
Эх сурвалжийг харах

Fixed misspelled local variable for code clarity

Specifically, tar(g)et_fps
Joshua Olson 10 жил өмнө
parent
commit
32b52e8041
1 өөрчлөгдсөн 3 нэмэгдсэн , 3 устгасан
  1. 3 3
      main/main.cpp

+ 3 - 3
main/main.cpp

@@ -1454,9 +1454,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);