Update p_tick.c, got rid of an useless angle change function

This commit is contained in:
Riku Salminen 2020-11-10 04:17:25 -05:00 committed by Riku Salminen
parent 2832586274
commit aea35171c2

View file

@ -644,10 +644,10 @@ void P_Ticker(boolean run)
G_WriteDemoTiccmd(&players[consoleplayer].cmd, 0);
if (demoplayback)
{
G_ReadDemoTiccmd(&players[consoleplayer].cmd, 0);
P_SetPlayerAngle(&players[consoleplayer], players[consoleplayer].mo->angle);
P_ForceLocalAngle(&players[consoleplayer], players[consoleplayer].mo->angle);
localaiming = players[consoleplayer].aiming;
player_t* p = &players[consoleplayer];
G_ReadDemoTiccmd(&p->cmd, 0);
P_ForceLocalAngle(p, p->mo->angle);
localaiming = p->aiming;
}
ps_lua_mobjhooks = 0;