forked from rosebudai/OpenRCT2-Web
Allow 3 cars per train on the Rocket cars
This commit is contained in:
1 parent
ec6724b4d4
commit
736437aa6e
2 files changed
+12
No files matched your search
@@ -16,6 +16,7 @@
|
||||
|
||||
#include "../core/IStream.hpp"
|
||||
#include "../core/Memory.hpp"
|
||||
#include "../core/String.hpp"
|
||||
#include "../core/Util.hpp"
|
||||
#include "ObjectRepository.h"
|
||||
#include "RideObject.h"
|
||||
@@ -123,6 +124,8 @@ void RideObject::ReadLegacy(IReadObjectContext * context, IStream * stream)
|
||||
{
|
||||
context->LogError(OBJECT_ERROR_INVALID_PROPERTY, "Nausea multiplier too high.");
|
||||
}
|
||||
|
||||
PerformRCT1CompatibilityFixes();
|
||||
}
|
||||
|
||||
void RideObject::Load()
|
||||
@@ -438,3 +441,11 @@ void RideObject::ReadLegacyVehicle(IReadObjectContext * context, IStream * strea
|
||||
vehicle->special_frames = stream->ReadValue<uint8>();
|
||||
stream->Seek(4, STREAM_SEEK_CURRENT);
|
||||
}
|
||||
|
||||
void RideObject::PerformRCT1CompatibilityFixes()
|
||||
{
|
||||
if (String::Equals(GetIdentifier(), "RCKC ")) {
|
||||
// The rocket cars could take 3 cars per train in RCT1. Restore this.
|
||||
_legacyType.max_cars_in_train = 3 + _legacyType.zero_cars;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user