Merge pull request #1931 from Gymnasiast/change-num-trains-without-retesting

Allow changing number of trains without retesting
This commit is contained in:
Ted John 2015-12-14 20:09:25 +00:00
commit bc104a82a9
1 changed files with 4 additions and 1 deletions

View File

@ -6791,7 +6791,6 @@ void game_command_set_ride_vehicles(int *eax, int *ebx, int *ecx, int *edx, int
return;
}
invalidate_test_results(rideIndex);
ride_clear_for_construction(rideIndex);
ride_remove_peeps(rideIndex);
ride->var_1CA = 100;
@ -6807,14 +6806,18 @@ void game_command_set_ride_vehicles(int *eax, int *ebx, int *ecx, int *edx, int
}
break;
case RIDE_SET_VEHICLES_COMMAND_TYPE_NUM_CARS_PER_TRAIN:
invalidate_test_results(rideIndex);
rideEntry = GET_RIDE_ENTRY(ride->subtype);
value = clamp(rideEntry->min_cars_in_train, value, rideEntry->max_cars_in_train);
ride->var_0CB = value;
break;
case RIDE_SET_VEHICLES_COMMAND_TYPE_RIDE_ENTRY:
invalidate_test_results(rideIndex);
ride->subtype = value;
ride_set_vehicle_colours_to_random_preset(ride, *eax & 0xFF);
break;
default:
log_error("Unknown command!");
}
ride->num_circuits = 1;