diff options
author | Philipp Sehmisch <tmw@crushnet.org> | 2006-04-30 14:10:27 +0000 |
---|---|---|
committer | Philipp Sehmisch <tmw@crushnet.org> | 2006-04-30 14:10:27 +0000 |
commit | 5dba20c49e27d3e3a6aecd35789dc8a90e26fc23 (patch) | |
tree | 1f01b5ddcd5ea79191afd944a17eee5ba2e461c3 /src/main.cpp | |
parent | 46cf9258d20113a48f7d5811ea112df6504dc30e (diff) | |
download | manaserv-5dba20c49e27d3e3a6aecd35789dc8a90e26fc23.tar.gz manaserv-5dba20c49e27d3e3a6aecd35789dc8a90e26fc23.tar.bz2 manaserv-5dba20c49e27d3e3a6aecd35789dc8a90e26fc23.tar.xz manaserv-5dba20c49e27d3e3a6aecd35789dc8a90e26fc23.zip |
removed the last remains of SDL
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/main.cpp b/src/main.cpp index a0922202..fb0497be 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -25,7 +25,6 @@ #include <signal.h> #include <iostream> #include <physfs.h> -#include <SDL.h> #include <enet/enet.h> #if (defined __USE_UNIX98 || defined __FreeBSD__) @@ -167,21 +166,9 @@ void initialize() accountHandler = new AccountHandler(); gameHandler = new GameHandler(); connectionHandler = new ConnectionHandler(); - - // Make SDL use a dummy videodriver so that it doesn't require an X server - //putenv("SDL_VIDEODRIVER=dummy"); - - // Initialize SDL - if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_TIMER) == -1) { - LOG_FATAL("SDL_Init: " << SDL_GetError(), 0) - exit(1); - } // Reset to default segmentation fault handling for debugging purposes signal(SIGSEGV, SIG_DFL); - - // set SDL to quit on exit. - atexit(SDL_Quit); // set enet to quit on exit. atexit(enet_deinitialize); @@ -242,9 +229,6 @@ void deinitialize() // Stop world timer worldTimer.stop(); - - // Quit SDL - SDL_Quit(); // Quit ENet enet_deinitialize(); |