From 6e4ee9e97560c704a662baba27517e736d76092a Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Wed, 16 Sep 2020 22:02:05 +1000 Subject: [PATCH] - Blood: Forbid unsynchronised input if dead. --- source/blood/src/controls.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/source/blood/src/controls.cpp b/source/blood/src/controls.cpp index 669263c56..bf552c499 100644 --- a/source/blood/src/controls.cpp +++ b/source/blood/src/controls.cpp @@ -153,8 +153,14 @@ static void processMovement(ControlInfo* const hidInput, bool const mouseaim) { PLAYER* pPlayer = &gPlayer[myconnectindex]; - applylook(pPlayer, input.q16avel, scaleAdjust); + // Perform unsynchronised angle/horizon if not dead. + if (gView->pXSprite->health != 0) + { + applylook(pPlayer, input.q16avel, scaleAdjust); + sethorizon(pPlayer, input.q16horz, scaleAdjust); + } + // Process angle amendments from the game's ticker. if (pPlayer->angTarget) { fixed_t angDelta = getincangleq16(pPlayer->q16ang, pPlayer->angTarget); @@ -171,8 +177,7 @@ static void processMovement(ControlInfo* const hidInput, bool const mouseaim) pPlayer->q16ang = (pPlayer->q16ang + FloatToFixed(scaleAdjust * pPlayer->angAdjust)) & 0x7FFFFFF; } - sethorizon(pPlayer, input.q16horz, scaleAdjust); - + // Process horizon amendments from the game's ticker. if (pPlayer->horizTarget) { fixed_t horizDelta = pPlayer->horizTarget - pPlayer->q16horiz;