… | |
… | |
2552 | |
2552 | |
2553 | /* call this here - we also will call this in do_ericserver, but |
2553 | /* call this here - we also will call this in do_ericserver, but |
2554 | * the players time has been increased when doericserver has been |
2554 | * the players time has been increased when doericserver has been |
2555 | * called, so we recheck it here. |
2555 | * called, so we recheck it here. |
2556 | */ |
2556 | */ |
2557 | op->contr->socket->handle_command (); |
2557 | //TODO: better than handling 8 commands, use some more intelligent rate-limiting |
|
|
2558 | for (int rep = 8; --rep && op->contr->socket->handle_command (); ) |
|
|
2559 | ; |
|
|
2560 | |
2558 | if (op->speed_left < 0) |
2561 | if (op->speed_left < 0) |
2559 | return 0; |
2562 | return 0; |
2560 | |
2563 | |
2561 | if (op->direction && (op->contr->run_on || op->contr->fire_on)) |
2564 | if (op->direction && (op->contr->run_on || op->contr->fire_on)) |
2562 | { |
2565 | { |