PF_lightstyle: make invalid style a warning instead of a Host_Error

Allows loading start.bsp in xmen TC again.

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1414 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
ewasylishen 2017-06-22 03:32:14 +00:00
parent 525cb5422a
commit 67ebee2350

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;