MCPcopy Create free account
hub / github.com/diasurgical/DevilutionX / nthread_terminate_game

Function nthread_terminate_game

Source/nthread.cpp:68–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66} // namespace
67
68void nthread_terminate_game(const char *pszFcn)
69{
70 uint32_t sErr = SErrGetLastError();
71 if (sErr == STORM_ERROR_INVALID_PLAYER) {
72 return;
73 }
74 if (sErr != STORM_ERROR_GAME_TERMINATED && sErr != STORM_ERROR_NOT_IN_GAME) {
75 app_fatal(StrCat(pszFcn, ":\n", pszFcn));
76 }
77
78 gbGameDestroyed = true;
79}
80
81uint32_t nthread_send_and_recv_turn(uint32_t curTurn, int turnDelta)
82{

Callers 7

nthread_recv_turnsFunction · 0.85
SendPacketFunction · 0.85
NetSendHiPriFunction · 0.85
multi_send_msg_packetFunction · 0.85
multi_send_zero_packetFunction · 0.85

Calls 3

SErrGetLastErrorFunction · 0.85
app_fatalFunction · 0.85
StrCatFunction · 0.85

Tested by

no test coverage detected