Fix and reenable SNetReceiveTurns on 3DS
This commit is contained in:
parent
c6a9eaaf88
commit
1ca50e65eb
2 changed files with 2 additions and 7 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue