Skip to content

Commit

Permalink
attempt to fix nextweapon autoswitch issue (#2037)
Browse files Browse the repository at this point in the history
  • Loading branch information
rfomin authored Nov 22, 2024
1 parent 2809231 commit dd46dfb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/p_pspr.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include "d_items.h"
#include "d_player.h"
#include "doomstat.h"
#include "g_nextweapon.h"
#include "i_printf.h"
#include "i_video.h" // uncapped
#include "m_random.h"
Expand Down Expand Up @@ -266,6 +267,8 @@ int P_SwitchWeapon(player_t *player)
int newweapon = currentweapon;
int i = NUMWEAPONS+1; // killough 5/2/98

G_NextWeaponReset();

// [XA] use fixed behavior for mbf21. no need
// for a discrete compat option for this, as
// it doesn't impact demo playback (weapon
Expand Down

0 comments on commit dd46dfb

Please sign in to comment.