diff --git a/polymer/eduke32/Makefile b/polymer/eduke32/Makefile index 4edc66840..caaaa2d0b 100644 --- a/polymer/eduke32/Makefile +++ b/polymer/eduke32/Makefile @@ -23,7 +23,7 @@ BUILD32_ON_64 = 0 RANCID_NETWORKING = 1 # Debugging/Build options -RELEASE?=0 +RELEASE?=1 NOSOUND?=0 USE_OPENAL ?= 1 OPTLEVEL?=2 diff --git a/polymer/eduke32/eduke32.vcproj b/polymer/eduke32/eduke32.vcproj index 5b2d0d557..95b173c3f 100644 --- a/polymer/eduke32/eduke32.vcproj +++ b/polymer/eduke32/eduke32.vcproj @@ -448,6 +448,10 @@ RelativePath=".\source\sounds.c" > + + @@ -556,6 +560,10 @@ RelativePath=".\source\sounds.h" > + + diff --git a/polymer/eduke32/source/astub.c b/polymer/eduke32/source/astub.c index f0991a2c8..78942b3cf 100644 --- a/polymer/eduke32/source/astub.c +++ b/polymer/eduke32/source/astub.c @@ -7581,9 +7581,6 @@ void ExtPreSaveMap(void) } } -void ExtPreLoadMap(void) -{} - static void G_ShowParameterHelp(void) { char *s = "Usage: mapster32 [OPTIONS] [FILE]\n\n" @@ -8873,6 +8870,22 @@ int32_t loadconsounds(char *fn) scriptfile_clearsymbols(); return ret; } + +void ExtPreLoadMap(void) +{ + static int32_t soundinit = 0; + if (!soundinit) + { + g_numsounds = loadconsounds(gamecon); + if (g_numsounds > 0) + { + if (S_SoundStartup() != 0) + S_SoundShutdown(); + } + soundinit = 1; + } +} + /// ^^^ int32_t ExtInit(void) @@ -9071,13 +9084,6 @@ int32_t ExtInit(void) loadtilegroups("tiles.cfg"); - g_numsounds = loadconsounds(gamecon); - if (g_numsounds > 0) - { - if (S_SoundStartup() != 0) - S_SoundShutdown(); - } - ReadHelpFile("m32help.hlp"); return rv; diff --git a/polymer/eduke32/source/jaudiolib/openal.c b/polymer/eduke32/source/jaudiolib/openal.c index eb3cc41c2..dc9df4938 100644 --- a/polymer/eduke32/source/jaudiolib/openal.c +++ b/polymer/eduke32/source/jaudiolib/openal.c @@ -275,9 +275,11 @@ char *AL_ErrorString(int32_t code) void check(int32_t show) { AL_Error=balcGetError(device); - if (AL_Error!=ALC_NO_ERROR&&show)initprintf("%s(%s)\n",ALC_ErrorString(AL_Error),ALdoing); + if (AL_Error!=ALC_NO_ERROR&&show) + initprintf("%s(%s)\n",ALC_ErrorString(AL_Error),ALdoing); AL_Error=balGetError(); - if (AL_Error!= AL_NO_ERROR&&show)initprintf("%s(%s)\n", AL_ErrorString(AL_Error),ALdoing); + if (AL_Error!= AL_NO_ERROR&&show) + initprintf("%s(%s)\n", AL_ErrorString(AL_Error),ALdoing); } extern ov_callbacks cb; diff --git a/polymer/eduke32/source/mapster32.h b/polymer/eduke32/source/mapster32.h index 2cdf862db..ea80ac9fc 100644 --- a/polymer/eduke32/source/mapster32.h +++ b/polymer/eduke32/source/mapster32.h @@ -222,3 +222,5 @@ static char *testplay_addparam = 0; int32_t gs_sprite[3][7]; char gs_spritewhat[3][7]; int16_t gs_cursprite=-1; + +int32_t g_musicSize=0;