Fix weapon bar with automap active.

This commit is contained in:
Mari the Deer 2023-07-04 17:19:09 +02:00
commit 8fcfc878b3
2 changed files with 5 additions and 2 deletions

View file

@ -575,6 +575,9 @@ extend Class SWWMHandler
}
else if ( WeapSel && swwm_useweaponbar && !paused && (players[consoleplayer].playerstate == PST_LIVE) && players[consoleplayer].mo && (gamestate == GS_LEVEL) )
{
// special case: ignore if we used the mousewheel and the automap is active
if ( automapactive && ((e.KeyScan == InputEvent.Key_MWheelUp) || (e.KeyScan == InputEvent.Key_MWheelDown)) )
return false;
// only if player owns any selectable weapons
if ( !wsel && SWWMWeaponSelect.PlayerHasWeapons(players[consoleplayer].mo) )
{