Fix and reenable SNetReceiveTurns on 3DS

This commit is contained in:
staphen 2021-06-08 09:36:18 -04:00 committed by Anders Jenbo
commit 1ca50e65eb
2 changed files with 2 additions and 7 deletions

View file

@ -92,10 +92,7 @@ bool nthread_recv_turns(bool *pfSendAsync)
last_tick += gnTickDelay;
return true;
}
#ifdef __3DS__
return false;
#else
if (!SNetReceiveTurns(0, MAX_PLRS, (char **)glpMsgTbl, gdwMsgLenTbl, &player_state[0])) {
if (!SNetReceiveTurns(0, MAX_PLRS, (char **)glpMsgTbl, (unsigned int *)gdwMsgLenTbl, &player_state[0])) {
if (SErrGetLastError() != STORM_ERROR_NO_MESSAGES_WAITING)
nthread_terminate_game("SNetReceiveTurns");
sgbTicsOutOfSync = false;
@ -112,8 +109,6 @@ bool nthread_recv_turns(bool *pfSendAsync)
*pfSendAsync = true;
last_tick += gnTickDelay;
return true;
#endif
}
static unsigned int nthread_handler(void *data)