From 3bc83a7ceb6ab99f1409aad462e07050ed23c22d Mon Sep 17 00:00:00 2001 From: terminx Date: Wed, 31 Jan 2018 04:13:40 +0000 Subject: [PATCH] Revise r6625 git-svn-id: https://svn.eduke32.com/eduke32@6637 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/duke3d/src/game.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/duke3d/src/game.cpp b/source/duke3d/src/game.cpp index 2ce1ad867..fc727b8c6 100644 --- a/source/duke3d/src/game.cpp +++ b/source/duke3d/src/game.cpp @@ -4082,7 +4082,7 @@ PALONLY: if (actor[i].picnum == BLIMP && t->picnum == SCRAP1 && pSprite->yvel >= 0) t->picnum = pSprite->yvel < MAXUSERTILES ? pSprite->yvel : 0; else t->picnum += T1(i); - t->shade = -128+6 < t->shade ? t->shade-6 : -128; + t->shade = max(t->shade-6, -128); G_MaybeTakeOnFloorPal(t, sect); break;