Fix crosshair drawing for scoped weapons.

This commit is contained in:
Mari the Deer 2022-11-11 00:08:54 +01:00
commit 67a899aaa9
4 changed files with 15 additions and 4 deletions

View file

@ -111,6 +111,8 @@ extend Class SWWMHandler
double theta = clamp(15.*frametime,0.,.5); // naive, but whatever
// draw precise crosshair(s)
if ( automapactive || (players[consoleplayer].Camera != players[consoleplayer].mo) || (players[consoleplayer].cheats&CF_CHASECAM) || (numcrosshairs <= 0) ) return;
let sw = SWWMWeapon(players[consoleplayer].ReadyWeapon);
if ( sw && !sw.ShouldDrawCrosshair() ) return;
if ( !swwm_precisecrosshair ) return;
if ( crosshairforce ) return;
if ( !crosshairon && (swwm_precisecrosshair <= 1) ) return;