mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-25 23:17:28 +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) {
|
void Zone::LoadSceneTransition(std::ifstream& file) {
|
||||||
SceneTransition sceneTrans;
|
SceneTransition sceneTrans;
|
||||||
if (m_ZoneFileFormatVersion < Zone::ZoneFileFormatVersion::LateAlpha) {
|
if (m_ZoneFileFormatVersion < Zone::ZoneFileFormatVersion::Auramar) {
|
||||||
uint8_t length;
|
uint8_t length;
|
||||||
BinaryIO::BinaryRead(file, length);
|
BinaryIO::BinaryRead(file, length);
|
||||||
sceneTrans.name = BinaryIO::ReadString(file, length);
|
sceneTrans.name = BinaryIO::ReadString(file, length);
|
||||||
|
file.ignore(4);
|
||||||
}
|
}
|
||||||
|
|
||||||
//BR<42>THER MAY I HAVE SOME L<><4C>PS?
|
//BR<42>THER MAY I HAVE SOME L<><4C>PS?
|
||||||
|
Loading…
Reference in New Issue
Block a user