Skip to content

Let a layer name its own maps - #1282

Open
openmubr wants to merge 1 commit into
Mutizens:mainfrom
openmubr:pr/layer-map-names
Open

openmubr wants to merge 1 commit into
Mutizens:mainfrom
openmubr:pr/layer-map-names

Conversation

@openmubr

@openmubr openmubr commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

A server can have maps of its own, with numbers the game does not know. Their name comes out as the unknown map's
today (minimap, map title, party list), and naming them means editing the switch in CMapManager::FindMapName.

This adds World/MapInfra/MapNameLayers.h. A layer is asked only for a map the game has no name for; the first
layer that knows the map wins. The game's own names always come first.

Without a layer nothing changes. MapManager.cpp gets one include and one line in the default: of FindMapName.

Tests

test_maps: a layer names a map the game does not know, the game's own name stays before any layer, the first layer
wins, and the unknown map's name comes back once the layers are removed.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant