mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-23 03:52:12 -04:00
attempt to fix nextweapon autoswitch issue (#2037)
This commit is contained in:
parent
2809231f00
commit
dd46dfb108
@ -22,6 +22,7 @@
|
|||||||
#include "d_items.h"
|
#include "d_items.h"
|
||||||
#include "d_player.h"
|
#include "d_player.h"
|
||||||
#include "doomstat.h"
|
#include "doomstat.h"
|
||||||
|
#include "g_nextweapon.h"
|
||||||
#include "i_printf.h"
|
#include "i_printf.h"
|
||||||
#include "i_video.h" // uncapped
|
#include "i_video.h" // uncapped
|
||||||
#include "m_random.h"
|
#include "m_random.h"
|
||||||
@ -266,6 +267,8 @@ int P_SwitchWeapon(player_t *player)
|
|||||||
int newweapon = currentweapon;
|
int newweapon = currentweapon;
|
||||||
int i = NUMWEAPONS+1; // killough 5/2/98
|
int i = NUMWEAPONS+1; // killough 5/2/98
|
||||||
|
|
||||||
|
G_NextWeaponReset();
|
||||||
|
|
||||||
// [XA] use fixed behavior for mbf21. no need
|
// [XA] use fixed behavior for mbf21. no need
|
||||||
// for a discrete compat option for this, as
|
// for a discrete compat option for this, as
|
||||||
// it doesn't impact demo playback (weapon
|
// it doesn't impact demo playback (weapon
|
||||||
|
Loading…
x
Reference in New Issue
Block a user