avoid setting cvars by name each frame

This commit is contained in:
Ludwig Nussel committed 2010-01-06 13:47:41 +00:00
1 parent 9b1a3387cb
commit 6f9b34ef75
5 files changed
+22 -13

No files matched your search

-7
View File
@@ -561,13 +561,6 @@ int main( int argc, char **argv )
while( 1 )
{
#ifndef DEDICATED
int appState = SDL_GetAppState( );
Cvar_SetValue( "com_unfocused", !( appState & SDL_APPINPUTFOCUS ) );
Cvar_SetValue( "com_minimized", !( appState & SDL_APPACTIVE ) );
#endif
IN_Frame( );
Com_Frame( );
}