From cc15de3ed9e2e28f67d1889802c00d40f207a33b Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Thu, 20 Aug 2020 08:52:22 +1000 Subject: [PATCH] - SW: Comment out code block causing interpolation issues when initialising a nuke. * If there was a `pNukePresent()` function, that's where the commented out code belongs. * I believe the rocket switching type was simplified during development and this is just an omission that's now obvious with interpolation. Only just, but you can notice this in an uninterpolated state while bobbing. * Fixes #212. --- source/sw/src/panel.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/sw/src/panel.cpp b/source/sw/src/panel.cpp index 0364b0970..890eb625e 100644 --- a/source/sw/src/panel.cpp +++ b/source/sw/src/panel.cpp @@ -4552,6 +4552,7 @@ pNukeAction(PANEL_SPRITEp psp) { PLAYERp pp = psp->PlayerP; +#if 0 // Code commented out as it's causing interpolation issues when initialising a nuke. psp->oy = psp->y; psp->y -= 3 * synctics; @@ -4560,6 +4561,7 @@ pNukeAction(PANEL_SPRITEp psp) psp->oy = psp->y = MICRO_YOFF; psp->yorig = psp->y; } +#endif pMicroBobSetup(psp); pWeaponBob(psp, PLAYER_MOVING(psp->PlayerP));