From 5ee58b06a220b531bad20a38a366c0a1872b233d Mon Sep 17 00:00:00 2001 From: Ilya Shurumov Date: Tue, 13 Oct 2020 22:49:21 +0600 Subject: [PATCH] - fix Tanner turn animation --- src_rebuild/GAME/C/MOTION_C.C | 4 ++++ src_rebuild/GAME/C/PEDEST.C | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src_rebuild/GAME/C/MOTION_C.C b/src_rebuild/GAME/C/MOTION_C.C index 95998f54..b404c6b7 100644 --- a/src_rebuild/GAME/C/MOTION_C.C +++ b/src_rebuild/GAME/C/MOTION_C.C @@ -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; diff --git a/src_rebuild/GAME/C/PEDEST.C b/src_rebuild/GAME/C/PEDEST.C index c04b7c34..88ad9e53 100644 --- a/src_rebuild/GAME/C/PEDEST.C +++ b/src_rebuild/GAME/C/PEDEST.C @@ -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; }