// wait for all ackreturns with timeout in seconds void Net_WaitAllAckReceived(UINT32 timeout) { tic_t tictac = I_GetTime(); timeout = tictac + timeout*TICRATE; HGetPacket(); while (timeout > I_GetTime() && !Net_AllAckReceived()) { while (tictac == I_GetTime()) I_Sleep(); tictac = I_GetTime(); HGetPacket(); Net_AckTicker(); } }
// wait for all ackreturns with timeout in seconds void Net_WaitAllAckReceived(UINT32 timeout) { #ifdef NONET (void)timeout; #else tic_t tictac = I_GetTime(); timeout = tictac + timeout*NEWTICRATE; HGetPacket(); while (timeout > I_GetTime() && !Net_AllAckReceived()) { while (tictac == I_GetTime()) I_Sleep(); tictac = I_GetTime(); HGetPacket(); Net_AckTicker(); } #endif }