Skip to content

Commit f8f1393

Browse files
committed
fixes #357
1 parent 8051ca2 commit f8f1393

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/DETHRACE/common/crush.c

+2-3
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ float gWobble_spam_y[8] = { 0.0f, -0.15f, 0.4f, 0.15f, -0.4f, 0.25f, 0.0f, -0.25
2929
float gWobble_spam_z[8] = { 0.4f, -0.25f, 0.0f, 0.25f, 0.0f, 0.15f, -0.4f, -0.15f };
3030
br_scalar gWheel_circ_to_width = 0.16f;
3131
tU8 gSmoke_damage_step[12] = { 20u, 20u, 0u, 10u, 10u, 10u, 10u, 10u, 10u, 10u, 10u, 10u };
32-
int gSteal_ranks[5] = { 0, 89, 72, 55, 38 };
33-
32+
int gSteal_ranks[6] = { 0, 89, 72, 55, 38, 21 };
3433
// IDA: int __usercall ReadCrushData@<EAX>(FILE *pF@<EAX>, tCrush_data *pCrush_data@<EDX>)
3534
int ReadCrushData(FILE* pF, tCrush_data* pCrush_data) {
3635
char s[256];
@@ -484,7 +483,7 @@ void TotallyRepairACar(tCar_spec* pCar) {
484483
the_car_actor->undamaged_vertices,
485484
the_car_actor->actor->model->nvertices * sizeof(br_vertex));
486485
// FIXME: BrModelUpdate(..., BR_MODU_VERTEX_COLOURS | BR_MODU_VERTEX_POSITIONS) fails on TELL_ME_IF_WE_PASS_THIS_WAY
487-
// BrModelUpdate(the_car_actor->actor->model, BR_MODU_VERTEX_COLOURS | BR_MODU_VERTEX_POSITIONS);
486+
// BrModelUpdate(the_car_actor->actor->model, BR_MODU_VERTEX_COLOURS | BR_MODU_VERTEX_POSITIONS);
488487
BrModelUpdate(the_car_actor->actor->model, BR_MODU_ALL);
489488
if (pipe_vertex_count != 0 && IsActionReplayAvailable()) {
490489
PipeSingleModelGeometry(pCar->car_ID, j, pipe_vertex_count, pipe_array);

src/DETHRACE/common/crush.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ extern float gWobble_spam_y[8];
88
extern float gWobble_spam_z[8];
99
extern br_scalar gWheel_circ_to_width;
1010
extern tU8 gSmoke_damage_step[12];
11-
extern int gSteal_ranks[5];
11+
extern int gSteal_ranks[6];
1212

1313
int ReadCrushData(FILE* pF, tCrush_data* pCrush_data);
1414

0 commit comments

Comments
 (0)