Don't reinit the SDL; it causes problems with the error handler.

This commit is contained in:
Glenn Maynard
2002-12-03 00:33:34 +00:00
parent 236c168826
commit 738107bb70
2 changed files with 6 additions and 2 deletions
+3 -1
View File
@@ -45,7 +45,9 @@ RageNetworkClient::RageNetworkClient()
m_priSock = 0;
m_priSockSet = NULL;
SDL_Init(0); // this may have already been init'd somewhere else
/* Don't do this; it'll fire up things we might not want. Let StepMania.cpp
* do the initial SDL config. */
// SDL_Init(0); // this may have already been init'd somewhere else
if( SDLNet_Init() < 0 )
throw RageException("SDLNet_Init: %s\n", SDLNet_GetError());
+3 -1
View File
@@ -59,7 +59,9 @@ RageNetworkServer::RageNetworkServer()
m_listenSockSet = NULL;
m_clientSocksSet = NULL;
SDL_Init(0); // this may have already been init'd somewhere else
/* Don't do this; it'll fire up things we might not want. Let StepMania.cpp
* do the initial SDL config. */
// SDL_Init(0); // this may have already been init'd somewhere else
if( SDLNet_Init() < 0 )
throw RageException("SDLNet_Init: %s\n", SDLNet_GetError());