- fix Tanner shadow height

This commit is contained in:
Ilya Shurumov 2021-02-04 17:55:59 +06:00
parent 1d417c18cb
commit 19ae398c3e

View File

@ -1624,11 +1624,17 @@ void DrawTanner(PEDESTRIAN* pPed)
iCurrBone = 0;
newShowTanner(pPed);
v.vx = pPed->position.vx;
v.vy = -pPed->position.vy;
v.vz = pPed->position.vz;
v.vy = -camera_position.vy - MapHeight(&v);// - camera_position.vy;
v.vx = (pPed->position.vx - camera_position.vx) + Skel[ROOT].pvOrigPos->vx;
v.vz = (pPed->position.vz - camera_position.vz) + Skel[ROOT].pvOrigPos->vz;
//v.vy = -camera_position.vy - MapHeight((VECTOR*)&pPed->position);
bDoingShadow = 1;
v.vy = -camera_position.vy - MapHeight((VECTOR*)&pPed->position);
if (pPed->padId == 0)
{