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:
Yamagi Burmeister 2016-10-23 18:31:11 +02:00
parent 10a8dfa388
commit a0a34e0a35

View file

@ -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 */