| 5618 | |
| 5619 | |
| 5620 | void checkForServerBail(void) { |
| 5621 | // if server died then leave the game (note that this may cause |
| 5622 | // further server errors but that's okay). |
| 5623 | if (serverError || |
| 5624 | (serverLink && serverLink->getState() == ServerLink::Hungup)) { |
| 5625 | // if we haven't reported the death yet then do so now |
| 5626 | if (serverDied || |
| 5627 | (serverLink && serverLink->getState() == ServerLink::Hungup)) { |
| 5628 | printError("Server has unexpectedly disconnected"); |
| 5629 | } |
| 5630 | leaveGame(); |
| 5631 | } |
| 5632 | } |
| 5633 | |
| 5634 | |
| 5635 | void updateVideoFormatTimer(const float dt) { |
no test coverage detected