mirror of
https://github.com/OpenDriver2/REDRIVER2.git
synced 2024-11-22 10:22:48 +01:00
- fix for the fix
This commit is contained in:
parent
51af30ae46
commit
0a3574bc5c
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user