dumb special case for wandering balls Zzz...

This commit is contained in:
Alug committed 2024-10-01 16:03:00 +02:00
1 parent 9abf2bca75
commit 12d6546062
3 files changed
+7 -3

No files matched your search

+1 -1
View File
@@ -2221,7 +2221,7 @@ static void P_ProcessLineSpecial(line_t *line, mobj_t *mo, sector_t *callsec)
INT32 sfxnum;
//dont play any funky sound intros that may interfere with the music
if (cv_skipintromusic.value && (leveltime < MUSICSTARTTIME))
if (skipintromus && (leveltime < MUSICSTARTTIME))
return;
sfxnum = sides[line->sidenum[0]].toptexture; //P_AproxDistance(line->dx, line->dy)>>FRACBITS;
+5 -2
View File
@@ -2191,6 +2191,7 @@ boolean S_FadeOutStopMusic(UINT32 ms)
static INT16 oldmap = 0;
static boolean oldencore = 0;
static boolean skipmusic = false;
boolean skipintromus = false;
static const char *musicexception_list[16] = {
"vote", "voteea", "voteeb", "racent", "krwin",
@@ -2243,6 +2244,8 @@ void S_CheckMap(void)
//
void S_InitMapMusic(void)
{
skipintromus = cv_skipintromusic.value && stricmp(G_BuildMapTitle(gamemap), "Wandering Falls") != 0;
if (mapmusflags & MUSIC_RELOADRESET)
{
strncpy(mapmusname, mapheaderinfo[gamemap-1]->musname, 7);
@@ -2259,7 +2262,7 @@ void S_InitMapMusic(void)
// lug: but not when we keep the map music lol
S_StopMusic();
if (cv_skipintromusic.value)
if (skipintromus)
return;
if (leveltime < MUSICSTARTTIME) // SRB2Kart
@@ -2276,7 +2279,7 @@ void S_StartMapMusic(void)
if (keepmusic)
return;
if (cv_skipintromusic.value)
if (skipintromus)
{
if (leveltime < starttime) // dumb but i dont need this to be spammed honestly
S_ChangeMusicEx(mapmusname, mapmusflags, true, mapmusposition, 0, 0);
+1
View File
@@ -71,6 +71,7 @@ extern consvar_t cv_keepmusic;
extern consvar_t cv_skipintromusic;
extern consvar_t cv_ignoremusicchanges;
extern boolean keepmusic;
extern boolean skipintromus;
#define MUSICSTARTTIME (starttime + (TICRATE/2))
extern consvar_t precachesound;