check that we chould discard time as speed issue

This commit is contained in:
Rorikstr | Rust Dev 2025-09-29 22:10:40 +03:00
parent 98035f17a2
commit a298b6396d

View file

@ -21,7 +21,7 @@ void do_move(void) {
int delay = (state->moving_type == ToDown) ? 50 : (1000 / state->info->speed);
if (current_time - state->last_time < delay) {
LOG_FUNCTION_END("do_move", "not enough time passed, delay=%d ms", delay);
LOG_FUNCTION_END("do_move", "not enough time passed, delay=%ld ms, current_time=%ld, state->last_time=%ld, difference=%ld", delay, current_time, state->last_time, current_time - state->last_time);
return; // ещё не время
}
state->last_time = current_time;