From a40bd8d3b95f0100ef7fb8827579f8a1fb62fb79 Mon Sep 17 00:00:00 2001 From: obligaron Date: Mon, 23 Aug 2021 09:42:08 +0200 Subject: [PATCH] DebugCmdLoadMap: Show Map Ids --- Source/debug.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Source/debug.cpp b/Source/debug.cpp index 147b0fb46..935b177ef 100644 --- a/Source/debug.cpp +++ b/Source/debug.cpp @@ -158,6 +158,16 @@ std::string DebugCmdWarpToLevel(const std::string_view parameter) std::string DebugCmdLoadMap(const std::string_view parameter) { + if (parameter.empty()) { + std::string ret = "What mapid do you want to visit?"; + for (auto &quest : Quests) { + if (quest._qslvl <= 0) + continue; + ret.append(fmt::format(" {} ({})", quest._qslvl, QuestLevelNames[quest._qslvl])); + } + return ret; + } + auto &myPlayer = Players[MyPlayerId]; auto level = atoi(parameter.data()); if (level < 1)