mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-11-18 17:55:27 +00:00
fix: one raw terrain reader, in dZoneManager, after the merge
The dashboard's copy of the terrain reader in dCommon is gone; main's in dZoneManager reads for everyone, and keeps what the copy had over it: colour and texture maps from before version 32 become RGBA, cut to the resolution the client keeps. The scene map (ZoneScenes) and the dCommon tests compile against that reader. A scene ID takes its layer as the zone file numbers it (0 General, 1 Audio) as well as the enum, so main's scene tools and tests build; /getscene prints the layer as a number. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -2028,7 +2028,7 @@ namespace DEVGMCommands {
|
||||
// Build the feedback message
|
||||
std::ostringstream feedback;
|
||||
feedback << "Scene ID: " << sceneID.GetSceneID();
|
||||
feedback << " (Layer: " << sceneID.GetLayerID() << ")";
|
||||
feedback << " (Layer: " << GeneralUtils::ToUnderlying(sceneID.GetLayerID()) << ")";
|
||||
|
||||
// Get the scene name
|
||||
const auto* sceneRef = zone->GetScene(sceneID);
|
||||
@@ -2071,7 +2071,7 @@ namespace DEVGMCommands {
|
||||
} else {
|
||||
feedback << "\nAdjacent Scenes (" << adjacentSceneIDs.size() << "):";
|
||||
for (const auto& adjSceneID : adjacentSceneIDs) {
|
||||
feedback << "\n - Scene ID: " << adjSceneID.GetSceneID() << " (Layer: " << adjSceneID.GetLayerID() << ")";
|
||||
feedback << "\n - Scene ID: " << adjSceneID.GetSceneID() << " (Layer: " << GeneralUtils::ToUnderlying(adjSceneID.GetLayerID()) << ")";
|
||||
|
||||
// Get the scene name if available
|
||||
const auto* sceneRef = zone->GetScene(adjSceneID);
|
||||
|
||||
Reference in New Issue
Block a user