You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-11 13:10:58 +00:00
Fix some LGTM errors of "Multiplication result converted to larger type"
This commit is contained in:
@@ -2488,17 +2488,17 @@ bool Main::iteration() {
|
||||
|
||||
iterating++;
|
||||
|
||||
uint64_t ticks = OS::get_singleton()->get_ticks_usec();
|
||||
const uint64_t ticks = OS::get_singleton()->get_ticks_usec();
|
||||
Engine::get_singleton()->_frame_ticks = ticks;
|
||||
main_timer_sync.set_cpu_ticks_usec(ticks);
|
||||
main_timer_sync.set_fixed_fps(fixed_fps);
|
||||
|
||||
uint64_t ticks_elapsed = ticks - last_ticks;
|
||||
const uint64_t ticks_elapsed = ticks - last_ticks;
|
||||
|
||||
int physics_ticks_per_second = Engine::get_singleton()->get_physics_ticks_per_second();
|
||||
float physics_step = 1.0 / physics_ticks_per_second;
|
||||
const int physics_ticks_per_second = Engine::get_singleton()->get_physics_ticks_per_second();
|
||||
const double physics_step = 1.0 / physics_ticks_per_second;
|
||||
|
||||
float time_scale = Engine::get_singleton()->get_time_scale();
|
||||
const double time_scale = Engine::get_singleton()->get_time_scale();
|
||||
|
||||
MainFrameTime advance = main_timer_sync.advance(physics_step, physics_ticks_per_second);
|
||||
double process_step = advance.process_step;
|
||||
|
||||
Reference in New Issue
Block a user