Fix crosshair drawing for scoped weapons.
This commit is contained in:
parent
047946bb3d
commit
67a899aaa9
4 changed files with 15 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue