Fix race car mode collisions

This commit is contained in:
duncanspumpkin 2016-01-04 10:06:26 +00:00
parent ccc7b1f228
commit d5bce19af1
1 changed files with 2 additions and 2 deletions

View File

@ -6510,8 +6510,8 @@ static bool vehicle_update_motion_collision_detection(
if (direction < 0x14) continue;
sint16 next_x_diff = abs(x + RCT2_ADDRESS(0x009A3B04, sint16)[vehicle->sprite_direction*2]-collideVehicle->x);
sint16 next_y_diff = abs(y + RCT2_ADDRESS(0x009A3B06, sint16)[vehicle->sprite_direction*2]-collideVehicle->y);
sint16 next_x_diff = abs(x + RCT2_ADDRESS(0x009A3B04, sint16)[((4 + vehicle->sprite_direction) >> 3) * 2] - collideVehicle->x);
sint16 next_y_diff = abs(y + RCT2_ADDRESS(0x009A3B06, sint16)[((4 + vehicle->sprite_direction) >> 3) *2]-collideVehicle->y);
if (next_x_diff + next_y_diff < x_diff + y_diff){
mayCollide = true;