1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-04 13:42:55 +01:00

Make seatsInPairs default to true

This commit is contained in:
Michael Steenbeek
2018-04-09 15:23:43 +02:00
parent b0413231b3
commit 92ba2dfb01

View File

@@ -694,9 +694,9 @@ rct_ride_entry_vehicle RideObject::ReadJsonCar(const json_t * jCar)
car.car_mass = ObjectJsonHelpers::GetInteger(jCar, "mass");
car.tab_height = ObjectJsonHelpers::GetInteger(jCar, "tabOffset");
car.num_seats = ObjectJsonHelpers::GetInteger(jCar, "numSeats");
if (ObjectJsonHelpers::GetBoolean(jCar, "seatsInPairs"))
if (ObjectJsonHelpers::GetBoolean(jCar, "seatsInPairs", true) && car.num_seats > 1)
{
car.num_seats |= 0x80;
car.num_seats |= VEHICLE_SEAT_PAIR_FLAG;
}
car.sprite_width = ObjectJsonHelpers::GetInteger(jCar, "spriteWidth");