Skip to content

Commit

Permalink
Accept droppeditem as 1-based thing id
Browse files Browse the repository at this point in the history
For consistency, since all dehacked thing ids start with 1 and not zero
  • Loading branch information
Ferk committed Oct 12, 2019
1 parent b71ee82 commit 3e068da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/d_deh.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3e068da

Please sign in to comment.