1
0
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:
Aaron Franke
2021-09-07 23:25:35 -05:00
parent f9aec342dc
commit 7e51e4cb84
12 changed files with 25 additions and 23 deletions

View File

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