| 3463 | } |
| 3464 | |
| 3465 | int32_t GetPlayerLastAction(uint32_t index, int32_t time) |
| 3466 | { |
| 3467 | auto& network = GetContext()->GetNetwork(); |
| 3468 | Guard::IndexInRange(index, network.player_list); |
| 3469 | |
| 3470 | if (time && Platform::GetTicks() > network.player_list[index]->lastActionTime + time) |
| 3471 | { |
| 3472 | return -999; |
| 3473 | } |
| 3474 | return network.player_list[index]->lastAction; |
| 3475 | } |
| 3476 | |
| 3477 | void SetPlayerLastAction(uint32_t index, GameCommand command) |
| 3478 | { |
no test coverage detected