Fix weapon bar with automap active.
This commit is contained in:
parent
47b0cad882
commit
8fcfc878b3
2 changed files with 5 additions and 2 deletions
|
|
@ -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) )
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue