MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / checkForServerBail

Function checkForServerBail

src/bzflag/guiplaying.cpp:5620–5632  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5618
5619
5620void 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
5635void updateVideoFormatTimer(const float dt) {

Callers 1

playingLoopFunction · 0.70

Calls 3

leaveGameFunction · 0.70
printErrorFunction · 0.50
getStateMethod · 0.45

Tested by

no test coverage detected