mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Store non-looping information in musicdef
Preface with a `\` (ie `Lump VOTEEA,\VOTEEB`) to indicate the preference is not to loop. This is for special jingles that have definitive conclusions.
This commit is contained in:
parent
2c0645cba2
commit
fe8db18066
2 changed files with 8 additions and 1 deletions
|
|
@ -1613,7 +1613,8 @@ void S_SoundTestPlay(void)
|
||||||
S_SoundTestTogglePause();
|
S_SoundTestTogglePause();
|
||||||
}
|
}
|
||||||
|
|
||||||
S_ChangeMusicInternal(soundtest.current->name[soundtest.currenttrack], true);
|
S_ChangeMusicInternal(soundtest.current->name[soundtest.currenttrack],
|
||||||
|
!soundtest.current->basenoloop[soundtest.currenttrack]);
|
||||||
S_ShowMusicCredit();
|
S_ShowMusicCredit();
|
||||||
|
|
||||||
soundtest.privilegedrequest = false;
|
soundtest.privilegedrequest = false;
|
||||||
|
|
@ -1760,6 +1761,11 @@ ReadMusicDefFields
|
||||||
do {
|
do {
|
||||||
if (i >= MAXDEFTRACKS)
|
if (i >= MAXDEFTRACKS)
|
||||||
break;
|
break;
|
||||||
|
if (value[0] == '\\')
|
||||||
|
{
|
||||||
|
def->basenoloop[i] = true;
|
||||||
|
value++;
|
||||||
|
}
|
||||||
STRBUFCPY(def->name[i], value);
|
STRBUFCPY(def->name[i], value);
|
||||||
strlwr(def->name[i]);
|
strlwr(def->name[i]);
|
||||||
def->hash[i] = quickncasehash (def->name[i], 6);
|
def->hash[i] = quickncasehash (def->name[i], 6);
|
||||||
|
|
|
||||||
|
|
@ -188,6 +188,7 @@ struct musicdef_t
|
||||||
{
|
{
|
||||||
char name[MAXDEFTRACKS][7];
|
char name[MAXDEFTRACKS][7];
|
||||||
UINT32 hash[MAXDEFTRACKS];
|
UINT32 hash[MAXDEFTRACKS];
|
||||||
|
boolean basenoloop[MAXDEFTRACKS];
|
||||||
UINT8 numtracks;
|
UINT8 numtracks;
|
||||||
char *title;
|
char *title;
|
||||||
char *author;
|
char *author;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue