… | |
… | |
2352 | |
2352 | |
2353 | /* call this here - we also will call this in do_ericserver, but |
2353 | /* call this here - we also will call this in do_ericserver, but |
2354 | * the players time has been increased when doericserver has been |
2354 | * the players time has been increased when doericserver has been |
2355 | * called, so we recheck it here. |
2355 | * called, so we recheck it here. |
2356 | */ |
2356 | */ |
2357 | //TODO: better than handling 8 commands, use some more intelligent rate-limiting |
2357 | op->contr->ns->handle_command (); |
2358 | for (int rep = 8; --rep && op->contr->ns->handle_command (); ) |
|
|
2359 | ; |
|
|
2360 | |
2358 | |
2361 | if (op->speed_left < 0) |
2359 | if (op->speed_left < 0) |
2362 | return 0; |
2360 | return 0; |
2363 | |
2361 | |
2364 | if (op->direction && (op->contr->run_on || op->contr->fire_on)) |
2362 | if (op->direction && (op->contr->run_on || op->contr->fire_on)) |