mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-12-18 08:22:36 +00:00
- make the title music only play once, unless a real demo is successfully played.
This commit is contained in:
parent
aaf8323eb2
commit
e47671c865
2 changed files with 6 additions and 2 deletions
|
@ -315,6 +315,7 @@ FStartupInfo GameStartupInfo;
|
||||||
FString lastIWAD;
|
FString lastIWAD;
|
||||||
int restart = 0;
|
int restart = 0;
|
||||||
bool AppActive = true;
|
bool AppActive = true;
|
||||||
|
bool playedtitlemusic;
|
||||||
|
|
||||||
cycle_t FrameCycles;
|
cycle_t FrameCycles;
|
||||||
|
|
||||||
|
@ -1573,7 +1574,8 @@ void D_DoAdvanceDemo (void)
|
||||||
gamestate = GS_DEMOSCREEN;
|
gamestate = GS_DEMOSCREEN;
|
||||||
pagename = gameinfo.TitlePage;
|
pagename = gameinfo.TitlePage;
|
||||||
pagetic = (int)(gameinfo.titleTime * TICRATE);
|
pagetic = (int)(gameinfo.titleTime * TICRATE);
|
||||||
S_ChangeMusic (gameinfo.titleMusic, gameinfo.titleOrder, false);
|
if (!playedtitlemusic) S_ChangeMusic (gameinfo.titleMusic, gameinfo.titleOrder, false);
|
||||||
|
playedtitlemusic = true;
|
||||||
demosequence = 3;
|
demosequence = 3;
|
||||||
pagecount = 0;
|
pagecount = 0;
|
||||||
C_HideConsole ();
|
C_HideConsole ();
|
||||||
|
|
|
@ -138,6 +138,7 @@ CUSTOM_CVAR (Int, displaynametags, 0, CVAR_ARCHIVE)
|
||||||
|
|
||||||
CVAR(Int, nametagcolor, CR_GOLD, CVAR_ARCHIVE)
|
CVAR(Int, nametagcolor, CR_GOLD, CVAR_ARCHIVE)
|
||||||
|
|
||||||
|
extern bool playedtitlemusic;
|
||||||
|
|
||||||
gameaction_t gameaction;
|
gameaction_t gameaction;
|
||||||
gamestate_t gamestate = GS_STARTUP;
|
gamestate_t gamestate = GS_STARTUP;
|
||||||
|
@ -2934,6 +2935,7 @@ void G_DoPlayDemo (void)
|
||||||
|
|
||||||
usergame = false;
|
usergame = false;
|
||||||
demoplayback = true;
|
demoplayback = true;
|
||||||
|
playedtitlemusic = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue