From 7bb678bb7e31d63ad97dd6f01e7135d4b778ef7d Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 30 Apr 2023 13:30:48 +0200 Subject: [PATCH] - fixed 'move' property handler to properly store its z value. --- source/games/duke/src/funct.h | 1 - source/games/duke/src/game.cpp | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/source/games/duke/src/funct.h b/source/games/duke/src/funct.h index 804a1df1b..0dcc0612b 100644 --- a/source/games/duke/src/funct.h +++ b/source/games/duke/src/funct.h @@ -87,7 +87,6 @@ void handle_se130(DDukeActor* i, int countmax); int dodge(DDukeActor*); void alterang(int ang, DDukeActor* actor, int g_p); -void fall_common(DDukeActor* actor, int g_p, int(*fallspecial)(DDukeActor*, int)); void checkavailweapon(player_struct* p); void addammo(int weapon, player_struct* p, int amount); diff --git a/source/games/duke/src/game.cpp b/source/games/duke/src/game.cpp index 9077f31ac..e48fd4365 100644 --- a/source/games/duke/src/game.cpp +++ b/source/games/duke/src/game.cpp @@ -802,7 +802,7 @@ DEFINE_PROPERTY(move, Sii, DukeActor) if (PROP_PARM_COUNT > 2) { PROP_INT_PARM(v2, 2); - move->movex = v2 / 16.f; + move->movez = v2 / 16.f; } } } @@ -822,7 +822,7 @@ DEFINE_PROPERTY(movef, Sff, DukeActor) if (PROP_PARM_COUNT > 2) { PROP_FLOAT_PARM(v2, 2); - move->movex = v2; + move->movez = v2; } } }