Keep next/prev weapon state synchronized with manual weapon switch (#2042)

This commit is contained in:
jpernst 2024-11-22 00:14:27 -08:00 committed by GitHub
parent 54068a57b0
commit 2809231f00
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -500,7 +500,7 @@ void P_PlayerThink (player_t* player)
if ((newweapon != wp_plasma && newweapon != wp_bfg) if ((newweapon != wp_plasma && newweapon != wp_bfg)
|| (gamemode != shareware) ) || (gamemode != shareware) )
player->pendingweapon = newweapon; player->nextweapon = player->pendingweapon = newweapon;
} }
// check for use // check for use