mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-25 05:41:42 +00:00
need to create the patches here if they don't already exist
This commit is contained in:
parent
bcd3245b76
commit
7b83345c75
1 changed files with 8 additions and 0 deletions
|
@ -266,6 +266,14 @@ void Y_LoadIntermissionData(void)
|
||||||
case int_ctf:
|
case int_ctf:
|
||||||
case int_teammatch:
|
case int_teammatch:
|
||||||
{
|
{
|
||||||
|
if (!rflagico) //prevent a crash if we haven't cached our team graphics yet
|
||||||
|
{
|
||||||
|
rflagico = W_CachePatchName("RFLAGICO", PU_HUDGFX);
|
||||||
|
bflagico = W_CachePatchName("BFLAGICO", PU_HUDGFX);
|
||||||
|
rmatcico = W_CachePatchName("RMATCICO", PU_HUDGFX);
|
||||||
|
bmatcico = W_CachePatchName("BMATCICO", PU_HUDGFX);
|
||||||
|
}
|
||||||
|
|
||||||
data.match.redflag = (intertype == int_ctf) ? rflagico : rmatcico;
|
data.match.redflag = (intertype == int_ctf) ? rflagico : rmatcico;
|
||||||
data.match.blueflag = (intertype == int_ctf) ? bflagico : bmatcico;
|
data.match.blueflag = (intertype == int_ctf) ? bflagico : bmatcico;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue