Remove win32 special case in idSession::Frame()

Since 1a25b165 not required anymore, all platforms behave the
same.
This commit is contained in:
dhewg 2011-12-22 11:43:24 +01:00
parent cdf6fa3702
commit 469031be21

View file

@ -2595,19 +2595,6 @@ void idSessionLocal::Frame() {
minTic = latchedTicNumber;
}
// FIXME: deserves a cleanup and abstraction
#if defined( _WIN32 )
// Spin in place if needed. The game should yield the cpu if
// it is running over 60 hz, because there is fundamentally
// nothing useful for it to do.
while( 1 ) {
latchedTicNumber = com_ticNumber;
if ( latchedTicNumber >= minTic ) {
break;
}
Sys_Sleep( 1 );
}
#else
while( 1 ) {
latchedTicNumber = com_ticNumber;
if ( latchedTicNumber >= minTic ) {
@ -2615,7 +2602,6 @@ void idSessionLocal::Frame() {
}
Sys_WaitForEvent( TRIGGER_EVENT_ONE );
}
#endif
if ( authEmitTimeout ) {
// waiting for a game auth