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:
Aaron Kimbrell
2026-11-10 11:19:33 -06:00
parent 0f826bdc99
commit fcf8591749
7 changed files with 23 additions and 687 deletions

View File

@@ -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);