OpenRCT2/test/tests/testdata/parks
Breno Rodrigues Guimarães ab53ddf59f Avoid fast-forwarding peep into the ride
The code being removed in the patch tries to fast forward a peep into the ride when it is the second peep for a vehicle that is used in pairs. Problem is that funds checking does not happen, so it happens that a peep may pay against its will.
Lets say a rich peep enters in line and a poor peep enters in line right after.
If the price of the ride is such that the rich peep can pay and the poor peep can't, it will be dragged into the ride because funds checking only happened for the first.
The second part of the patch just adjusts we consider the vehicle a full car if the second position is filled.

Add test to verify that a peep is not dragged into a ride it can't pay

This test puts two peeps in a Ferris Wheel. The first peep is rich and the second peep is poor. When they are both in line, the ride price is raised so that the poor peep can't pay.
Make sure the poor peep turns back and leaves the ride.

During development, a mistake in the logic would have broken all rides other than ferris wheels in a way that multiple guests could enter the same car.
Also add a test to make sure that is never broken.
2020-04-25 18:27:33 -03:00
..
BigMapTest.sv6 Add S6 Import/Export test and remove old NetworkLoadSave test 2019-10-20 13:49:35 +02:00
bpb.sv6 Add rating test data 2017-06-04 00:47:34 +01:00
pathfinding-tests.sv6 Rework tests to use ride entrances as path targets 2019-01-02 14:12:51 +00:00
small_park_car_ride_one_car.sv6 Avoid fast-forwarding peep into the ride 2020-04-25 18:27:33 -03:00
small_park_with_ferris_wheel.sv6 Avoid fast-forwarding peep into the ride 2020-04-25 18:27:33 -03:00
tile-element-tests.sv6 Add tests for tile_element_wants_path_connection_towards 2018-04-17 20:43:49 +02:00