mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-11-15 00:07:13 +00:00
fix: a zone file's boundaries and scene colours are named and kept as main has them
ZoneBoundary's destinationZone and destinationSceneID and the scene's NiColor, so main's scene tools and tests read the zone this branch's reader loads. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -124,9 +124,11 @@ void ZoneFile::ReadScene(std::istream& file, uint32_t index) {
|
||||
}
|
||||
|
||||
if (fileFormatVersion >= FileFormatVersion::LatePreAlpha) {
|
||||
BinaryIO::BinaryRead(file, scene.color_r);
|
||||
BinaryIO::BinaryRead(file, scene.color_b);
|
||||
BinaryIO::BinaryRead(file, scene.color_g);
|
||||
uint8_t r, b, g;
|
||||
BinaryIO::BinaryRead(file, r);
|
||||
BinaryIO::BinaryRead(file, b);
|
||||
BinaryIO::BinaryRead(file, g);
|
||||
scene.color = NiColor(r / 255.0f, g / 255.0f, b / 255.0f);
|
||||
}
|
||||
|
||||
scenes.push_back(std::move(scene));
|
||||
@@ -180,8 +182,8 @@ void ZoneFile::ReadZoneBoundaries(std::istream& file) {
|
||||
LWOINSTANCEID instanceID = 0;
|
||||
BinaryIO::BinaryRead(file, mapID);
|
||||
BinaryIO::BinaryRead(file, instanceID);
|
||||
boundary.destZoneID = LWOZONEID(mapID, instanceID, 0);
|
||||
BinaryIO::BinaryRead(file, boundary.destSceneID);
|
||||
boundary.destinationZone = LWOZONEID(mapID, instanceID, 0);
|
||||
BinaryIO::BinaryRead(file, boundary.destinationSceneID);
|
||||
BinaryIO::BinaryRead(file, boundary.spawnLocation);
|
||||
zoneBoundaries.push_back(boundary);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user