From 52cf0bc54d301c8e9b5c5b73d1f91742e80d6bc8 Mon Sep 17 00:00:00 2001 From: qndel Date: Sun, 11 Oct 2020 14:11:53 +0200 Subject: [PATCH] [hellfire] nthread_recv_turns bin exact --- Source/nthread.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Source/nthread.cpp b/Source/nthread.cpp index e5f9577b0..0d87321eb 100644 --- a/Source/nthread.cpp +++ b/Source/nthread.cpp @@ -92,7 +92,11 @@ BOOL nthread_recv_turns(BOOL *pfSendAsync) return TRUE; } if (!SNetReceiveTurns(0, MAX_PLRS, (char **)glpMsgTbl, gdwMsgLenTbl, (LPDWORD)player_state)) { +#ifdef HELLFIRE + if (GetLastError() != STORM_ERROR_NO_MESSAGES_WAITING) +#else if (SErrGetLastError() != STORM_ERROR_NO_MESSAGES_WAITING) +#endif nthread_terminate_game("SNetReceiveTurns"); sgbTicsOutOfSync = FALSE; sgbSyncCountdown = 1;