- fix for the fix

This commit is contained in:
Ilya Shurumov 2022-04-02 23:48:54 +06:00
parent 51af30ae46
commit 0a3574bc5c

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 (gInGameCutsceneActive != 0 && (model->flags2 & MODEL_FLAG_SMASHABLE) == 0)
if((model->flags2 & MODEL_FLAG_SMASHABLE) == 0 || gInGameCutsceneActive == 0)
{
cp->hd.where.t[0] += FIXEDH(collisionResult.penetration * collisionResult.surfNormal.vx);
cp->hd.where.t[2] += FIXEDH(collisionResult.penetration * collisionResult.surfNormal.vz);