Skip to content

Commit

Permalink
Keep next/prev weapon state synchronized with manual weapon switch (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
jpernst authored Nov 22, 2024
1 parent 54068a5 commit 2809231
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/p_user.c
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ void P_PlayerThink (player_t* player)

if ((newweapon != wp_plasma && newweapon != wp_bfg)
|| (gamemode != shareware) )
player->pendingweapon = newweapon;
player->nextweapon = player->pendingweapon = newweapon;
}

// check for use
Expand Down

0 comments on commit 2809231

Please sign in to comment.