always print full weapon command in HUD widget

This commit is contained in:
Fabian Greffrath 2024-08-09 17:20:34 +02:00
parent 46f9050489
commit 2d48a6eca7

View File

@ -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
{