Reorganize the switch block, add missing int_comp case

This commit is contained in:
Steel Titanium 2021-04-07 00:55:08 -04:00
parent 101b6e46d4
commit a501b7b00d
1 changed files with 9 additions and 14 deletions

View File

@ -263,28 +263,23 @@ void Y_LoadIntermissionData(void)
interpic = W_CachePatchName(mapheaderinfo[gamemap-1]->interscreen, PU_PATCH); interpic = W_CachePatchName(mapheaderinfo[gamemap-1]->interscreen, PU_PATCH);
break; break;
} }
case int_ctf:
case int_teammatch:
{
data.match.redflag = (intertype == int_ctf) ? rflagico : rmatcico;
data.match.blueflag = (intertype == int_ctf) ? bflagico : bmatcico;
}
/* FALLTHRU */
case int_match: case int_match:
case int_race: case int_race:
case int_teammatch: case int_comp:
case int_ctf:
{ {
if (intertype == int_match || intertype == int_race) if (intertype == int_match || intertype == int_race || intertype == int_comp)
{ {
// get RESULT header // get RESULT header
data.match.result = W_CachePatchName("RESULT", PU_PATCH); data.match.result = W_CachePatchName("RESULT", PU_PATCH);
} }
if (intertype == int_ctf)
{
data.match.redflag = rflagico;
data.match.blueflag = bflagico;
}
else // team match
{
data.match.redflag = rmatcico;
data.match.blueflag = bmatcico;
}
// get background tile // get background tile
bgtile = W_CachePatchName("SRB2BACK", PU_PATCH); bgtile = W_CachePatchName("SRB2BACK", PU_PATCH);
break; break;