mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-18 23:42:11 +00:00
Merge branch 'interfree' into 'next'
Don't cache the default background patches if we have an interscreen (resolves #546) Closes #546 See merge request STJr/SRB2!1619
This commit is contained in:
commit
f191525fbb
1 changed files with 4 additions and 5 deletions
|
@ -239,12 +239,12 @@ void Y_LoadIntermissionData(void)
|
|||
}
|
||||
data.coop.ptotal = W_CachePatchName("YB_TOTAL", PU_PATCH);
|
||||
|
||||
// get background patches
|
||||
bgpatch = W_CachePatchName("INTERSCR", PU_PATCH);
|
||||
|
||||
// grab an interscreen if appropriate
|
||||
if (mapheaderinfo[gamemap-1]->interscreen[0] != '#')
|
||||
interpic = W_CachePatchName(mapheaderinfo[gamemap-1]->interscreen, PU_PATCH);
|
||||
else // no interscreen? use default background
|
||||
bgpatch = W_CachePatchName("INTERSCR", PU_PATCH);
|
||||
break;
|
||||
}
|
||||
case int_spec:
|
||||
|
@ -255,12 +255,11 @@ void Y_LoadIntermissionData(void)
|
|||
data.spec.pscore = W_CachePatchName("YB_SCORE", PU_PATCH);
|
||||
data.spec.pcontinues = W_CachePatchName("YB_CONTI", PU_PATCH);
|
||||
|
||||
// get background tile
|
||||
bgtile = W_CachePatchName("SPECTILE", PU_PATCH);
|
||||
|
||||
// grab an interscreen if appropriate
|
||||
if (mapheaderinfo[gamemap-1]->interscreen[0] != '#')
|
||||
interpic = W_CachePatchName(mapheaderinfo[gamemap-1]->interscreen, PU_PATCH);
|
||||
else // no interscreen? use default background
|
||||
bgtile = W_CachePatchName("SPECTILE", PU_PATCH);
|
||||
break;
|
||||
}
|
||||
case int_ctf:
|
||||
|
|
Loading…
Reference in a new issue