From 3e068dacae41d7edc71d1726abe56bc0d3feb3ff Mon Sep 17 00:00:00 2001 From: Fernando Carmona Varo Date: Wed, 9 Oct 2019 18:19:59 +0200 Subject: [PATCH] Accept droppeditem as 1-based thing id For consistency, since all dehacked thing ids start with 1 and not zero --- src/d_deh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/d_deh.c b/src/d_deh.c index 4a24894d..402b9697 100644 --- a/src/d_deh.c +++ b/src/d_deh.c @@ -1736,7 +1736,7 @@ static void setMobjInfoValue(int mobjInfoIndex, int keyIndex, uint64_t value) { case 12: mi->deathstate = (int)value; return; case 13: mi->xdeathstate = (int)value; return; case 14: mi->deathsound = (int)value; return; - case 15: mi->droppeditem = (int)value; return; + case 15: mi->droppeditem = (int)(value-1); return; // make it base zero (deh is 1-based) case 16: mi->speed = (int)value; return; case 17: mi->radius = (int)value; return; case 18: mi->height = (int)value; return;