mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2024-11-10 07:21:58 +00:00
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:
parent
3bba2e7862
commit
d61095a0e0
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue