mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
G_BuildTiccmd: Fix not being able to use item button to toggle PF_WANTSTOJOIN
This commit is contained in:
parent
28b3006efd
commit
739d81f403
1 changed files with 11 additions and 2 deletions
13
src/g_game.c
13
src/g_game.c
|
|
@ -1179,9 +1179,18 @@ void G_BuildTiccmd(ticcmd_t *cmd, INT32 realtics, UINT8 ssplayer)
|
|||
K_ToggleDirector(false);
|
||||
}
|
||||
|
||||
if (M_MenuButtonPressed(forplayer, MBT_R))
|
||||
if (player->spectator == true)
|
||||
{
|
||||
K_ToggleDirector(true);
|
||||
// duplication of fire
|
||||
if (G_PlayerInputDown(forplayer, gc_item, 0))
|
||||
{
|
||||
cmd->buttons |= BT_ATTACK;
|
||||
}
|
||||
|
||||
if (M_MenuButtonPressed(forplayer, MBT_R))
|
||||
{
|
||||
K_ToggleDirector(true);
|
||||
}
|
||||
}
|
||||
|
||||
goto aftercmdinput;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue