From 7cf13ed1582f5537f307cfc882789694735d61f0 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Fri, 6 Jan 2023 17:22:21 +0100 Subject: [PATCH] - fixed bad angle math in cl_showweapon handler. --- source/games/blood/src/animatesprite.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/games/blood/src/animatesprite.cpp b/source/games/blood/src/animatesprite.cpp index 1071c84eb..e25cadd00 100644 --- a/source/games/blood/src/animatesprite.cpp +++ b/source/games/blood/src/animatesprite.cpp @@ -481,7 +481,7 @@ static tspritetype* viewAddEffect(tspriteArray& tsprites, int nTSprite, VIEW_EFF if (cl_showweapon == 2 && r_voxels && nVoxel != -1) { auto gView = &gPlayer[gViewIndex]; - pNSprite->Angles.Yaw = gView->actor->spr.Angles.Yaw += DAngle90; // always face viewer + pNSprite->Angles.Yaw = gView->actor->spr.Angles.Yaw + DAngle90; // always face viewer pNSprite->cstat &= ~CSTAT_SPRITE_YFLIP; if (pPlayer->curWeapon == kWeapLifeLeech) // position lifeleech behind player {