From 22e0c4d9ae9cf41afb3cb28876526ef53590206b Mon Sep 17 00:00:00 2001 From: nukeykt Date: Fri, 12 Jun 2020 13:41:48 +0900 Subject: [PATCH] Rednukem: fix longstanding bug with unfrozen GREENSLIME Backported from eduke32 --- source/rr/src/actors.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/rr/src/actors.cpp b/source/rr/src/actors.cpp index f97c6df6d..e43c43c1a 100644 --- a/source/rr/src/actors.cpp +++ b/source/rr/src/actors.cpp @@ -5268,7 +5268,7 @@ ACTOR_STATIC void G_MoveActors(void) if (pData[3] > 280) { pSprite->pal = 0; - pData[0] = 0; + pData[0] = pData[3] = 0; goto next_sprite; } A_Fall(spriteNum); @@ -5371,6 +5371,8 @@ ACTOR_STATIC void G_MoveActors(void) { static const char slimeFrames[] = { 5, 5, 6, 6, 7, 7, 6, 5 }; + Bassert(pData[3] < ARRAY_SSIZE(slimeFrames)); + pSprite->picnum = GREENSLIME + slimeFrames[pData[3]]; if (pData[3] == 5)