dumb special case for wandering balls Zzz...

This commit is contained in:
Alug committed 2024-10-01 16:02:39 +02:00
1 parent 1883178c55
commit 1dc83a0c3c
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
@@ -1988,6 +1988,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",
@@ -2040,6 +2041,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);
@@ -2056,7 +2059,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
@@ -2073,7 +2076,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;