mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-22 03:12:00 -04:00
fix Demoloop missing support for DeHackEd Text substitution (#2269)
This commit is contained in:
parent
3c4b90f30a
commit
8553faabd8
@ -25,9 +25,14 @@
|
||||
#include "m_array.h"
|
||||
#include "m_json.h"
|
||||
#include "m_misc.h"
|
||||
#include "sounds.h"
|
||||
|
||||
#include "d_demoloop.h"
|
||||
|
||||
// Support for DeHackEd Text substitution, fixes PL2.WAD
|
||||
#define DEH_MUSIC_LUMP(buffer, mus_id) \
|
||||
M_snprintf(buffer, sizeof buffer, "d_%s", S_music[mus_id].name);
|
||||
|
||||
// Doom
|
||||
static demoloop_entry_t demoloop_registered[] = {
|
||||
{ "TITLEPIC", "D_INTRO", 170, TYPE_ART, WIPE_MELT },
|
||||
@ -145,16 +150,23 @@ static void D_GetDefaultDemoLoop(GameMode_t mode)
|
||||
{
|
||||
case shareware:
|
||||
case registered:
|
||||
DEH_MUSIC_LUMP(demoloop_registered[0].secondary_lump, mus_intro)
|
||||
|
||||
demoloop = demoloop_registered;
|
||||
demoloop_count = arrlen(demoloop_registered);
|
||||
break;
|
||||
|
||||
case retail:
|
||||
DEH_MUSIC_LUMP(demoloop_retail[0].secondary_lump, mus_intro)
|
||||
|
||||
demoloop = demoloop_retail;
|
||||
demoloop_count = arrlen(demoloop_retail);
|
||||
break;
|
||||
|
||||
case commercial:
|
||||
DEH_MUSIC_LUMP(demoloop_commercial[0].secondary_lump, mus_dm2ttl)
|
||||
DEH_MUSIC_LUMP(demoloop_commercial[4].secondary_lump, mus_dm2ttl)
|
||||
|
||||
demoloop = demoloop_commercial;
|
||||
demoloop_count = arrlen(demoloop_commercial);
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user