Skip to content

Commit

Permalink
always print full weapon command in HUD widget
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiangreffrath committed Aug 9, 2024
1 parent 46f9050 commit 2d48a6e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/hu_command.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,8 @@ static void TicToHudCmd(hud_cmd_t *hud_cmd, const ticcmd_t *cmd)

if (cmd->buttons & BT_CHANGE)
{
const int bt_weaponmask = demo_compatibility ?
BT_WEAPONMASK_OLD : BT_WEAPONMASK;
hud_cmd->change =
1 + ((cmd->buttons & bt_weaponmask) >> BT_WEAPONSHIFT);
1 + ((cmd->buttons & BT_WEAPONMASK) >> BT_WEAPONSHIFT);
}
else
{
Expand Down

0 comments on commit 2d48a6e

Please sign in to comment.