mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-15 01:01:33 +00:00
Actually print a warning if the old demo id collides
This commit is contained in:
parent
db34d70faa
commit
3e52764935
1 changed files with 9 additions and 0 deletions
|
@ -1163,7 +1163,16 @@ static old_demo_var_t *CV_FindOldDemoVar(UINT16 chk)
|
|||
for (demovar = consvar_old_demo_vars; demovar; demovar = demovar->next)
|
||||
{
|
||||
if (demovar->checksum == chk)
|
||||
{
|
||||
if (demovar->collides)
|
||||
{
|
||||
CONS_Alert(CONS_WARNING,
|
||||
"Old demo netvar id %hu is a collision\n", chk);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return demovar;
|
||||
}
|
||||
}
|
||||
|
||||
return NULL;
|
||||
|
|
Loading…
Reference in a new issue