Skip to content

Commit ff86731

Browse files
committed
- fix headlights disappearing in bumper view
1 parent 8651e2f commit ff86731

2 files changed

Lines changed: 8 additions & 7 deletions

File tree

src_rebuild/Game/C/debris.c

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ void PlacePoolForCar(CAR_DATA *cp, CVECTOR *col, int front, int in_car)
414414
int i;
415415
SVECTOR s[12];
416416
SVECTOR s1[12];
417-
VECTOR mid_position;
417+
SVECTOR smid;
418418
VECTOR toss;
419419
VECTOR pos;
420420
CAR_COSMETICS* car_cos;
@@ -510,14 +510,15 @@ void PlacePoolForCar(CAR_DATA *cp, CVECTOR *col, int front, int in_car)
510510
s1[2].vz = s1[3].vz;
511511

512512
SetRotMatrix(&cp->hd.drawCarMat);
513-
SetVec(&mid_position, 0, 0, -500);
513+
SetVec(&smid, 0, 0, -500);
514514

515-
gte_ldlv0(&mid_position);
515+
gte_ldv0(&smid);
516516
gte_rtv0();
517-
gte_stlvnl(&mid_position);
518-
VecAdd(&mid_position, &mid_position, &pos);
517+
gte_stlvnl(&toss);
519518

520-
car_road_height = MapHeight(&mid_position);
519+
VecAdd(&toss, &toss, &pos);
520+
521+
car_road_height = MapHeight(&toss);
521522

522523
// adjust height and poisition for each vertex
523524
for(i = 0; i < count; i++)

src_rebuild/PsyCross

0 commit comments

Comments
 (0)