Fix Vanilla Weapon Switch Logic (Example: Dehacked Chainsaw with Ammo) (#605)

This commit is contained in:
Arsinikk 2025-02-18 00:39:47 -06:00 committed by Fabian Greffrath
parent 2f21b4e7cf
commit c8f0ea32da

View File

@ -279,6 +279,10 @@ int P_SwitchWeapon(player_t *player)
if (mbf21)
return P_SwitchWeaponMBF21(player);
// Fix weapon switch logic in vanilla (example: chainsaw with ammo)
if (demo_compatibility)
currentweapon = newweapon = wp_nochange;
// killough 2/8/98: follow preferences and fix BFG/SSG bugs
do