From 4ab1cbe4b107a774350d40b610183b01e00d7b45 Mon Sep 17 00:00:00 2001 From: turbocat Date: Thu, 25 Mar 2021 19:08:20 +0000 Subject: [PATCH] Wolfenstein 3D: - Fixed crash when finishing a game in Linux. - Fixed makefile libSDLn dir. git-svn-id: svn://kolibrios.org@8647 a494cfbc-eb01-0410-851d-a64ba20cac60 --- contrib/games/wolf3d/Makefile | 2 +- contrib/games/wolf3d/id_sd.cpp | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/contrib/games/wolf3d/Makefile b/contrib/games/wolf3d/Makefile index 5be015a4a0..612f29af9d 100755 --- a/contrib/games/wolf3d/Makefile +++ b/contrib/games/wolf3d/Makefile @@ -7,7 +7,7 @@ CFLAGS = -c -fno-ident -O2 -fomit-frame-pointer -fno-ident -U__WIN32__ -U_Win32 LDFLAGS = -static -S -nostdlib -T $(SDK_DIR)/sources/newlib/app.lds --image-base 0 INCLUDES = -I$(SDK_DIR)/sources/newlib/libc/include -I$(SDK_DIR)/sources/SDL-1.2.2_newlib/include -I. -I SDL_mixer -LIBPATH = -L $(SDK_DIR)/lib -L /home/autobuild/tools/win32/mingw32/lib +LIBPATH = -L $(SDK_DIR)/lib -L /home/autobuild/tools/win32/mingw32/lib -L $(SDK_DIR)/lib OBJECTS += wl_cloudsky.o OBJECTS += wl_debug.o diff --git a/contrib/games/wolf3d/id_sd.cpp b/contrib/games/wolf3d/id_sd.cpp index 87f3152332..c85c8ae757 100755 --- a/contrib/games/wolf3d/id_sd.cpp +++ b/contrib/games/wolf3d/id_sd.cpp @@ -1115,7 +1115,9 @@ SD_Shutdown(void) free(DigiList); SD_Started = false; + #ifdef _KOLIBRI Mix_CloseAudio(); + #endif } ///////////////////////////////////////////////////////////////////////////