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

Function nthread_terminate_game

Source/nthread.cpp:26–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24static SDL_Thread *sghThread = NULL;
25
26void nthread_terminate_game(const char *pszFcn)
27{
28 DWORD sErr;
29
30 sErr = SErrGetLastError();
31 if (sErr == STORM_ERROR_INVALID_PLAYER) {
32 return;
33 } else if (sErr == STORM_ERROR_GAME_TERMINATED) {
34 gbGameDestroyed = TRUE;
35 } else if (sErr == STORM_ERROR_NOT_IN_GAME) {
36 gbGameDestroyed = TRUE;
37 } else {
38 app_fatal("%s:\n%s", pszFcn, TraceLastError());
39 }
40}
41
42DWORD nthread_send_and_recv_turn(DWORD cur_turn, int turn_delta)
43{

Callers 8

nthread_recv_turnsFunction · 0.85
multi_send_packetFunction · 0.85
NetSendHiPriFunction · 0.85
multi_send_msg_packetFunction · 0.85
multi_send_zero_packetFunction · 0.85
NetInitFunction · 0.85

Calls 2

SErrGetLastErrorFunction · 0.85
app_fatalFunction · 0.85

Tested by

no test coverage detected