summaryrefslogtreecommitdiff
path: root/src/strife/p_pspr.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/strife/p_pspr.c')
-rw-r--r--src/strife/p_pspr.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/strife/p_pspr.c b/src/strife/p_pspr.c
index 99981739..b4e7c1c2 100644
--- a/src/strife/p_pspr.c
+++ b/src/strife/p_pspr.c
@@ -966,8 +966,11 @@ void P_MovePsprites (player_t* player)
player->psprites[ps_flash].sy = player->psprites[ps_weapon].sy;
// villsa [STRIFE] extra stuff for targeter
- player->psprites[ps_targleft].sx = (100 - player->accuracy) - (160*FRACUNIT);
- player->psprites[ps_targright].sx = (100 - player->accuracy) + (160*FRACUNIT);
+ player->psprites[ps_targleft].sx =
+ (160*FRACUNIT) - ((100 - player->accuracy) << FRACBITS);
+
+ player->psprites[ps_targright].sx =
+ ((100 - player->accuracy) << FRACBITS) + (160*FRACUNIT);
}