This acursed crash-inducing typo spat in my face and called me a bitch

This commit is contained in:
fickleheart 2019-12-29 19:19:26 -06:00
parent c46c92d605
commit 5929b4797e

View file

@ -1177,12 +1177,11 @@ static void R_ProjectDropShadow(mobj_t *thing, vissprite_t *vis, fixed_t tx, fix
shadow->sz = (INT16)((centeryfrac - FixedMul(shadow->gz - viewz, yscale))>>FRACBITS);
shadow->cut = SC_ISSCALED|SC_SHADOW; //check this
shadow->startfrac = 0;
shadow->xiscale = 0x7fffff00 / (shadow->xscale/2);
shadow->xiscale = 0x7ffffff0 / (shadow->xscale/2);
if (shadow->x1 > x1)
shadow->startfrac += shadow->xiscale*(vis->x1-x1);
shadow->startfrac += shadow->xiscale*(shadow->x1-x1);
if (thing->subsector->sector->numlights)
{