- do not extend car collision box (to avoid unwanted collisions)

This commit is contained in:
InspirationByte 2022-02-18 09:35:08 +03:00
parent e091b941fa
commit 1e4b2dc8c8

View File

@ -661,8 +661,8 @@ int CarBuildingCollision(CAR_DATA *cp, BUILDING_BOX *building, CELL_OBJECT *cop,
cp->hd.where.t[0] += cd[0].vel.vx;
cp->hd.where.t[2] += cd[0].vel.vz;
cd[0].length[0] = car_cos->colBox.vz + 15;
cd[0].length[1] = car_cos->colBox.vx + 15;
cd[0].length[0] = car_cos->colBox.vz;
cd[0].length[1] = car_cos->colBox.vx;
if (handlingType[cp->hndType].fourWheelDrive == 1 || cp->hndType == 5)
cd[0].length[1] = (cd[0].length[1] * 13) / 16;