From e299bf9b625eb38d883a4ce2724069a5eba38453 Mon Sep 17 00:00:00 2001 From: Aaron Kimbrell Date: Mon, 31 Jul 2023 01:49:43 -0500 Subject: [PATCH] fix: read and store the zone transition width properly (#1169) --- dZoneManager/Zone.cpp | 2 +- dZoneManager/Zone.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/dZoneManager/Zone.cpp b/dZoneManager/Zone.cpp index 7343bb59..6b153706 100644 --- a/dZoneManager/Zone.cpp +++ b/dZoneManager/Zone.cpp @@ -349,7 +349,7 @@ void Zone::LoadSceneTransition(std::istream& file) { uint8_t length; BinaryIO::BinaryRead(file, length); sceneTrans.name = BinaryIO::ReadString(file, length); - file.ignore(4); + BinaryIO::BinaryRead(file, sceneTrans.width); } //BR�THER MAY I HAVE SOME L��PS? diff --git a/dZoneManager/Zone.h b/dZoneManager/Zone.h index 9c5322a1..b3e72036 100644 --- a/dZoneManager/Zone.h +++ b/dZoneManager/Zone.h @@ -30,6 +30,7 @@ struct SceneTransitionInfo { struct SceneTransition { std::string name; std::vector points; + float width; }; struct MovingPlatformPathWaypoint {