mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-17 10:11:02 +00:00
Fix the console spam issue AGAIN
This commit is contained in:
parent
a830a20c52
commit
a0ecb4b71d
1 changed files with 4 additions and 3 deletions
|
@ -1259,7 +1259,7 @@ void G_BuildTiccmd(ticcmd_t *cmd, INT32 realtics, UINT8 ssplayer)
|
|||
|
||||
if (PLAYERINPUTDOWN(ssplayer, gc_centerview))
|
||||
{
|
||||
if (abilitydirection)
|
||||
if (abilitydirection && !ticcmd_centerviewdown[forplayer])
|
||||
{
|
||||
CV_SetValue((ssplayer == 1 ? &cv_directionchar : &cv_directionchar2), 0);
|
||||
*myangle = player->mo->angle;
|
||||
|
@ -1268,9 +1268,10 @@ void G_BuildTiccmd(ticcmd_t *cmd, INT32 realtics, UINT8 ssplayer)
|
|||
|
||||
ticcmd_centerviewdown[forplayer] = true;
|
||||
}
|
||||
else
|
||||
else if (ticcmd_centerviewdown[forplayer])
|
||||
{
|
||||
CV_SetValue((ssplayer == 1 ? &cv_directionchar : &cv_directionchar2), 1);
|
||||
if (abilitydirection)
|
||||
CV_SetValue((ssplayer == 1 ? &cv_directionchar : &cv_directionchar2), 1);
|
||||
|
||||
ticcmd_centerviewdown[forplayer] = false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue