]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - snd_xmp.c
model_shared: Avoid Mod_MakeSortedSurfaces if dedicated. Fixes crash.
[xonotic/darkplaces.git] / snd_xmp.c
index 2985112b639c4f1afbfa28552122bc21c17b290b..85a58ef8d06eea71df0281eaaad1312d02f6b27d 100644 (file)
--- a/snd_xmp.c
+++ b/snd_xmp.c
  */
 
 
-#include "quakedef.h"
+#include "darkplaces.h"
 #include "snd_main.h"
 #include "snd_xmp.h"
+#include "sound.h"
 
 #ifdef LINK_TO_LIBXMP
 #include <xmp.h>
@@ -69,7 +70,7 @@
 
 #define xmp_dll 1
 
-qboolean XMP_OpenLibrary (void) {return true;}
+qbool XMP_OpenLibrary (void) {return true;}
 void XMP_CloseLibrary (void) {}
 #else
 
@@ -345,7 +346,7 @@ XMP_OpenLibrary
 Try to load the libxmp DLL
 ====================
 */
-qboolean XMP_OpenLibrary (void)
+qbool XMP_OpenLibrary (void)
 {
        const char* dllnames_xmp [] =
        {
@@ -592,7 +593,7 @@ XMP_LoadModFile
 Load an XMP module file into memory
 ===============
 */
-qboolean XMP_LoadModFile(const char *filename, sfx_t *sfx)
+qbool XMP_LoadModFile(const char *filename, sfx_t *sfx)
 {
        fs_offset_t filesize;
        unsigned char *data;