From 80f4124b178781363b39a328a7fa8de3325a0f4f Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Fri, 7 Oct 2022 14:17:08 +1100 Subject: [PATCH] - Duke: Fix integer division in `shootrpg()`. * Stems from initial floatification in `- floatified Duke's shootrpg`. --- source/games/duke/src/player_d.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/games/duke/src/player_d.cpp b/source/games/duke/src/player_d.cpp index f2102b4ff..201ff265a 100644 --- a/source/games/duke/src/player_d.cpp +++ b/source/games/duke/src/player_d.cpp @@ -749,7 +749,7 @@ static void shootrpg(DDukeActor *actor, int p, DVector3 pos, DAngle ang, int atw } if (p < 0) aimed = nullptr; - auto offset = (ang + DAngle1 * 61).ToVector() * (1024 / 448); + auto offset = (ang + DAngle1 * 61.171875).ToVector() * (1024. / 448.); auto spawned = CreateActor(sect, pos.plusZ(-1) + offset, atwith, 0, 14, 14, ang, vel, zvel, actor, 4); if (!spawned) return;