- fix Jones in trouble cutscene deviation

This commit is contained in:
Ilya Shurumov 2022-05-05 11:10:32 +06:00
parent f65e1cec71
commit f4145a0458

View File

@ -798,7 +798,7 @@ int CarBuildingCollision(CAR_DATA *cp, BUILDING_BOX *building, CELL_OBJECT *cop,
collisionResult.hit.vy = cp->hd.where.t[1] + 41;
// perform error correction
if((model->flags2 & MODEL_FLAG_SMASHABLE) == 0 || gInGameCutsceneActive == 0)
if((model->flags2 & MODEL_FLAG_SMASHABLE) == 0 || gInGameCutsceneActive == 0 || cd[0].isCameraOrTanner)
{
cp->hd.where.t[0] += FIXEDH(collisionResult.penetration * collisionResult.surfNormal.vx);
cp->hd.where.t[2] += FIXEDH(collisionResult.penetration * collisionResult.surfNormal.vz);