mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Merge branch 'reloadmap-fix' into 'master'
Make sure reloadingMap flag is reset when returning to menus See merge request KartKrew/Kart!2014
This commit is contained in:
commit
a76d2432a0
2 changed files with 7 additions and 1 deletions
|
|
@ -1085,6 +1085,7 @@ void D_ClearState(void)
|
|||
nextmapoverride = 0;
|
||||
skipstats = 0;
|
||||
tutorialchallenge = TUTORIALSKIP_NONE;
|
||||
gamemap = 1;
|
||||
|
||||
gameaction = ga_nothing;
|
||||
memset(displayplayers, 0, sizeof(displayplayers));
|
||||
|
|
|
|||
|
|
@ -8210,12 +8210,17 @@ void P_ResetLevelMusic(void)
|
|||
|
||||
if (tempmapmus_size > 1)
|
||||
{
|
||||
if (g_reloadingMap)
|
||||
if (g_reloadingMap == (modeattacking == ATTACKING_NONE))
|
||||
{
|
||||
// If restarting the map, simply cycle
|
||||
// through available alt music.
|
||||
idx = (mapmusrng + 1) % tempmapmus_size;
|
||||
}
|
||||
else if (modeattacking)
|
||||
{
|
||||
// Short circuit the cycle.
|
||||
idx = mapmusrng % tempmapmus_size;
|
||||
}
|
||||
else
|
||||
{
|
||||
idx = random % tempmapmus_size;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue