Actually print a warning if the old demo id collides

This commit is contained in:
James R 2020-06-19 18:08:04 -07:00
parent db34d70faa
commit 3e52764935

View file

@ -1163,7 +1163,16 @@ static old_demo_var_t *CV_FindOldDemoVar(UINT16 chk)
for (demovar = consvar_old_demo_vars; demovar; demovar = demovar->next) for (demovar = consvar_old_demo_vars; demovar; demovar = demovar->next)
{ {
if (demovar->checksum == chk) 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 demovar;
}
} }
return NULL; return NULL;