From 4d3a7dd8fb57347efa50ebef7b6a4f998231ac1a Mon Sep 17 00:00:00 2001 From: Ronald Kinard Date: Thu, 29 Jan 2015 00:17:47 -0600 Subject: [PATCH] cmake: fix NDEBUG on Debug wow i'm stupid --- src/sdl/CMakeLists.txt | 1 - src/sdl/i_system.c | 9 --------- 2 files changed, 10 deletions(-) diff --git a/src/sdl/CMakeLists.txt b/src/sdl/CMakeLists.txt index 567a1ba9..77b6d107 100644 --- a/src/sdl/CMakeLists.txt +++ b/src/sdl/CMakeLists.txt @@ -165,7 +165,6 @@ if(${SDL2_FOUND}) target_compile_definitions(${SRB2_SDL2_EXE_NAME} PRIVATE -DHAVE_SDL - -DNDEBUG ) #### Installation #### diff --git a/src/sdl/i_system.c b/src/sdl/i_system.c index 08cccfc6..567611ec 100644 --- a/src/sdl/i_system.c +++ b/src/sdl/i_system.c @@ -667,17 +667,9 @@ static void I_StartupConsole(void) { HANDLE ci, co; const INT32 ded = M_CheckParm("-dedicated"); -#ifdef SDLMAIN BOOL gotConsole = FALSE; if (M_CheckParm("-console") || ded) gotConsole = AllocConsole(); -#else - BOOL gotConsole = TRUE; - if (M_CheckParm("-detachconsole")) - { - FreeConsole(); - gotConsole = AllocConsole(); - } #ifdef _DEBUG else if (M_CheckParm("-noconsole") && !ded) #else @@ -687,7 +679,6 @@ static void I_StartupConsole(void) FreeConsole(); gotConsole = FALSE; } -#endif if (gotConsole) {