Изменена формула расчета времени пути
This commit is contained in:
parent
d8fee17444
commit
9a206925c5
6
utils.c
6
utils.c
@ -212,7 +212,11 @@ short can_move(struct barrel *bar, char robot_id) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifndef EMULATOR
|
#ifndef EMULATOR
|
||||||
approximate_time *= 4;
|
if (approximate_time > 1) {
|
||||||
|
approximate_time = ((approximate_time - 1) * 3) + 6;
|
||||||
|
} else if (approximate_time == 1) {
|
||||||
|
approximate_time = 8;
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (bar->software_timer > -approximate_time) {
|
if (bar->software_timer > -approximate_time) {
|
||||||
|
Reference in New Issue
Block a user