mirror of https://github.com/OpenRCT2/OpenRCT2.git
Partial fix of #9533. Door sounds not playing
Will now look for correct field. But many json objects do not have this field set correctly.
This commit is contained in:
parent
406ec7ff32
commit
1ee2063cef
|
@ -137,7 +137,7 @@ void WallObject::ReadJson(IReadObjectContext* context, const json_t* root)
|
|||
}
|
||||
|
||||
// Door sound
|
||||
auto jDoorSound = json_object_get(properties, "scrollingMode");
|
||||
auto jDoorSound = json_object_get(properties, "doorSound");
|
||||
if (jDoorSound != nullptr)
|
||||
{
|
||||
auto doorSound = json_integer_value(jDoorSound);
|
||||
|
|
Loading…
Reference in New Issue