PF_lightstyle: make invalid style a warning instead of a Host_Error

Allows loading start.bsp in xmen TC again.

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1414 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
Eric Wasylishen 2017-06-22 03:32:14 +00:00
parent 3bba2e7862
commit d61095a0e0

View file

@ -1230,7 +1230,10 @@ static void PF_lightstyle (void)
// bounds check to avoid clobbering sv struct
if (style < 0 || style >= MAX_LIGHTSTYLES)
Host_Error("PF_lightstyle: style = %d", style);
{
Con_DWarning("PF_lightstyle: invalid style %d\n", style);
return;
}
// change the string in sv
sv.lightstyles[style] = val;