mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-12-22 13:33:35 +00:00
fix loading scenes in some older formats (#782)
This fix is based on lcdr's luzviewer
This commit is contained in:
parent
63af2c8da7
commit
409d682c9d
@ -338,10 +338,11 @@ const Path* Zone::GetPath(std::string name) const {
|
||||
|
||||
void Zone::LoadSceneTransition(std::ifstream& file) {
|
||||
SceneTransition sceneTrans;
|
||||
if (m_ZoneFileFormatVersion < Zone::ZoneFileFormatVersion::LateAlpha) {
|
||||
if (m_ZoneFileFormatVersion < Zone::ZoneFileFormatVersion::Auramar) {
|
||||
uint8_t length;
|
||||
BinaryIO::BinaryRead(file, length);
|
||||
sceneTrans.name = BinaryIO::ReadString(file, length);
|
||||
file.ignore(4);
|
||||
}
|
||||
|
||||
//BR<42>THER MAY I HAVE SOME L<><4C>PS?
|
||||
|
Loading…
Reference in New Issue
Block a user