diff --git a/source/core/coreactor.h b/source/core/coreactor.h index 727fcede3..2e161f13c 100644 --- a/source/core/coreactor.h +++ b/source/core/coreactor.h @@ -107,11 +107,6 @@ public: spr.angle = spr.angle.Normalized360(); } - int int_zvel() const - { - return vel.Z * zworldtoint; - } - // Note: Both Duke and SW use Q12.4 for this, Exhumed doesn't seem to treat horizontal velocity with a fixed factor. int int_xvel() const { diff --git a/source/games/duke/src/actors_d.cpp b/source/games/duke/src/actors_d.cpp index 0723bf887..2cf537d15 100644 --- a/source/games/duke/src/actors_d.cpp +++ b/source/games/duke/src/actors_d.cpp @@ -1923,7 +1923,7 @@ void movetransports_d(void) case STAT_FALLER: case STAT_DUMMYPLAYER: - ll = abs(act2->int_zvel()) * zinttoworld; + ll = abs(act2->vel.Z); { warpspriteto = 0;