From 4e917b3ac8e5ea3260718c9f18f079b3f07b2892 Mon Sep 17 00:00:00 2001 From: jeffdoggett Date: Tue, 1 Mar 2016 21:14:08 +0000 Subject: [PATCH] Update Gib death value when changing health so that we are compatible with old DeHackEd files. --- Source/dh_stuff.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/dh_stuff.c b/Source/dh_stuff.c index 80a9001..1a9973f 100644 --- a/Source/dh_stuff.c +++ b/Source/dh_stuff.c @@ -1302,7 +1302,7 @@ static void dh_write_to_thing (unsigned int number, unsigned int record, unsigne { case 0:ptr -> doomednum = value; break; case 1:ptr -> spawnstate = value; break; - case 2:ptr -> spawnhealth = value; break; + case 2:ptr -> spawnhealth = value; value = -value; /* Fall through */ case 3:ptr -> gibhealth = value; break; case 4:ptr -> seestate = value; break; case 5:ptr -> seesound = value; break;