Fix overflow issue with tsprite shade of gibs.

Patch from Fox.

git-svn-id: https://svn.eduke32.com/eduke32@6625 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
hendricks266 2018-01-29 11:14:12 +00:00
parent e7cbf0b1a9
commit 4bedc0c39d

View file

@ -4082,7 +4082,7 @@ PALONLY:
if (actor[i].picnum == BLIMP && t->picnum == SCRAP1 && pSprite->yvel >= 0) if (actor[i].picnum == BLIMP && t->picnum == SCRAP1 && pSprite->yvel >= 0)
t->picnum = pSprite->yvel < MAXUSERTILES ? pSprite->yvel : 0; t->picnum = pSprite->yvel < MAXUSERTILES ? pSprite->yvel : 0;
else t->picnum += T1(i); else t->picnum += T1(i);
t->shade -= 6; t->shade = -128+6 < t->shade ? t->shade-6 : -128;
G_MaybeTakeOnFloorPal(t, sect); G_MaybeTakeOnFloorPal(t, sect);
break; break;