mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-03-26 12:52:00 +00:00
When an invalid muzzle flash offset is send, just return.
The original client crashed (or survived by pure luck) when muzzle flash offsets >210 were send. Our fix was to bail out, but that broke some buggy mods... So just return and print an optional debug message. This fixes issue #153.
This commit is contained in:
parent
10a8dfa388
commit
a0a34e0a35
1 changed files with 2 additions and 1 deletions
|
@ -341,7 +341,8 @@ CL_AddMuzzleFlash2(void)
|
|||
|
||||
if (flash_number > 210)
|
||||
{
|
||||
Com_Error(ERR_DROP, "CL_AddMuzzleFlash2: bad offset");
|
||||
Com_DPrintf("CL_AddMuzzleFlash2: bad offset");
|
||||
return;
|
||||
}
|
||||
|
||||
/* locate the origin */
|
||||
|
|
Loading…
Reference in a new issue