Skip to content

Commit

Permalink
Fix: Replace constant with configurable physics_step_time (#430)
Browse files Browse the repository at this point in the history
  • Loading branch information
b-kurczynski authored Jan 6, 2025
1 parent 1f009a2 commit 0ccb454
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/DETHRACE/common/car.c
Original file line number Diff line number Diff line change
Expand Up @@ -6295,8 +6295,8 @@ int CollideTwoCarsRepeatedly(tCollision_info* car1, tCollision_info* car2, br_sc
car1->frame_collision_flag += 256;
car2->frame_collision_flag += 256;
if (gNet_mode == eNet_mode_host) {
car1->last_car_car_collision = gLast_mechanics_time + 40;
car2->last_car_car_collision = gLast_mechanics_time + 40;
car1->last_car_car_collision = gLast_mechanics_time + harness_game_config.physics_step_time;
car2->last_car_car_collision = gLast_mechanics_time + harness_game_config.physics_step_time;
}
}
ResetCarsMass(car1, car2);
Expand Down

0 comments on commit 0ccb454

Please sign in to comment.