Put braces on separate line

This commit is contained in:
Gymnasiast 2017-01-01 21:11:04 +01:00
parent fd046a592c
commit 2ef9078945
1 changed files with 6 additions and 3 deletions

View File

@ -77,19 +77,22 @@ void RideObject::ReadLegacy(IReadObjectContext * context, IStream * stream)
GetStringTable()->Read(context, stream, OBJ_STRING_ID_DESCRIPTION);
// TODO: Move to its own function when ride construction window is merged.
if (gConfigInterface.select_by_track_type) {
if (gConfigInterface.select_by_track_type)
{
_legacyType.enabledTrackPieces = 0xFFFFFFFFFFFFFFFF;
}
else
{
// When not in select by track type mode, add boosters if the track type is eligible
for (int i = 0; i < 3; i++) {
for (int i = 0; i < 3; i++)
{
if (_legacyType.ride_type[i] == RIDE_TYPE_LOOPING_ROLLER_COASTER ||
_legacyType.ride_type[i] == RIDE_TYPE_CORKSCREW_ROLLER_COASTER ||
_legacyType.ride_type[i] == RIDE_TYPE_TWISTER_ROLLER_COASTER ||
_legacyType.ride_type[i] == RIDE_TYPE_VERTICAL_DROP_ROLLER_COASTER ||
_legacyType.ride_type[i] == RIDE_TYPE_GIGA_COASTER ||
_legacyType.ride_type[i] == RIDE_TYPE_JUNIOR_ROLLER_COASTER) {
_legacyType.ride_type[i] == RIDE_TYPE_JUNIOR_ROLLER_COASTER)
{
_legacyType.enabledTrackPieces |= (1ULL << TRACK_BOOSTER);
}