Re-revise r6625.

git-svn-id: https://svn.eduke32.com/eduke32@6638 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
hendricks266 2018-01-31 05:23:39 +00:00
parent 3bc83a7ceb
commit d2fd7a2c30

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 = max(t->shade-6, -128); t->shade = -128+6 < t->shade ? t->shade-6 : -128; // effectively max(t->shade-6, -128) while avoiding (signed!) underflow
G_MaybeTakeOnFloorPal(t, sect); G_MaybeTakeOnFloorPal(t, sect);
break; break;