From 5dba20c49e27d3e3a6aecd35789dc8a90e26fc23 Mon Sep 17 00:00:00 2001 From: Philipp Sehmisch Date: Sun, 30 Apr 2006 14:10:27 +0000 Subject: removed the last remains of SDL --- src/main.cpp | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index a092220..fb0497b 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -25,7 +25,6 @@ #include #include #include -#include #include #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(); -- cgit