From 4b7560cd36898ca084db2bef05c7ee0c19de70a6 Mon Sep 17 00:00:00 2001 From: Xaser Acheron Date: Wed, 24 Feb 2021 16:26:54 -0600 Subject: [PATCH] fix: MBF's A_Spawn DEH codepointer should use misc2 as spawnheight, not distance --- src/gamedata/d_dehacked.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gamedata/d_dehacked.cpp b/src/gamedata/d_dehacked.cpp index 7a84db83f..50876323e 100644 --- a/src/gamedata/d_dehacked.cpp +++ b/src/gamedata/d_dehacked.cpp @@ -640,8 +640,8 @@ static void CreateSpawnFunc(FunctionCallEmitter &emitters, int value1, int value I_Error("No class found for dehackednum %d!\n", value1+1); } emitters.AddParameterPointerConst(InfoNames[value1-1]); // itemtype - emitters.AddParameterFloatConst(value2); // distance - emitters.AddParameterFloatConst(0); // height + emitters.AddParameterFloatConst(0); // distance + emitters.AddParameterFloatConst(value2); // height emitters.AddParameterIntConst(0); // useammo emitters.AddParameterIntConst(0); // transfer_translation }