- fix Tanner turn animation

This commit is contained in:
Ilya Shurumov 2020-10-13 22:49:21 +06:00
parent 25d8b897a8
commit 5ee58b06a2
2 changed files with 7 additions and 1 deletions

View File

@ -711,6 +711,10 @@ void DrawBodySprite(PEDESTRIAN *pDrawingPed, int boneId, VERTTYPE v1[2], VERTTYP
prims->b0 = combointensity & 0xFF;
}
#ifndef PSX
prims->pgxp_index = 0xFFFF;
#endif
if (bDoingShadow == 0)
{
x = sz + sy >> 4;

View File

@ -1898,8 +1898,10 @@ void PedDoNothing(PEDESTRIAN* pPed)
pPed->dir.vy = pPed->dir.vy - 64 + (tannerTurnMax - pPed->doing_turn) * tannerTurnStep;
if (pPed->frame1 > 16)
if (pPed->frame1 > 14)
pPed->frame1 = 0;
else
pPed->frame1++;
pPed->head_rot = 0;
}