mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-29 20:50:58 +00:00
Not strictly pretty, but fixes a bug I discovered whilst working on this.
This commit is contained in:
parent
ce724a6138
commit
336a26602d
1 changed files with 1 additions and 29 deletions
30
src/m_menu.c
30
src/m_menu.c
|
@ -2045,35 +2045,7 @@ static void Newgametype_OnChange(void)
|
|||
P_AllocMapHeader((INT16)(cv_nextmap.value-1));
|
||||
|
||||
if (!M_CanShowLevelOnPlatter(cv_nextmap.value-1, cv_newgametype.value))
|
||||
{
|
||||
INT32 value = 0;
|
||||
|
||||
switch (cv_newgametype.value)
|
||||
{
|
||||
case GT_COOP:
|
||||
value = TOL_COOP;
|
||||
break;
|
||||
case GT_COMPETITION:
|
||||
value = TOL_COMPETITION;
|
||||
break;
|
||||
case GT_RACE:
|
||||
value = TOL_RACE;
|
||||
break;
|
||||
case GT_MATCH:
|
||||
case GT_TEAMMATCH:
|
||||
value = TOL_MATCH;
|
||||
break;
|
||||
case GT_TAG:
|
||||
case GT_HIDEANDSEEK:
|
||||
value = TOL_TAG;
|
||||
break;
|
||||
case GT_CTF:
|
||||
value = TOL_CTF;
|
||||
break;
|
||||
}
|
||||
|
||||
CV_SetValue(&cv_nextmap, M_GetFirstLevelInList(value));
|
||||
}
|
||||
CV_SetValue(&cv_nextmap, M_GetFirstLevelInList(cv_newgametype.value));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue