diff --git a/Source/debug.cpp b/Source/debug.cpp index c52c9433e..aeb8bc8c6 100644 --- a/Source/debug.cpp +++ b/Source/debug.cpp @@ -6,10 +6,11 @@ #ifdef _DEBUG +#include "debug.h" + +#include "automap.h" #include "control.h" #include "cursor.h" -#include "debug.h" -#include "engine/cel_sprite.hpp" #include "engine/load_cel.hpp" #include "engine/point.hpp" #include "inv.h" @@ -264,6 +265,13 @@ std::string DebugCmdLighting(const std::string_view parameter) return "All raindrops are the same."; } +std::string DebugCmdMap(const std::string_view parameter) +{ + std::fill(&AutomapView[0][0], &AutomapView[DMAXX - 1][DMAXX - 1], true); + + return "The way is made clear when viewed from above"; +} + std::string DebugCmdVision(const std::string_view parameter) { DebugVision = !DebugVision; @@ -394,6 +402,7 @@ std::vector DebugCmdList = { { "set spells", "Set spell level to {level} for all spells.", "{level}", &DebugCmdSetSpellsLevel }, { "take gold", "Removes all gold from inventory.", "", &DebugCmdTakeGoldCheat }, { "give quest", "Enable a given quest.", "({id})", &DebugCmdQuest }, + { "give map", "Reveal the map.", "", &DebugCmdMap }, { "changelevel", "Moves to specifided {level} (use 0 for town).", "{level}", &DebugCmdWarpToLevel }, { "map", "Load a quest level {level}.", "{level}", &DebugCmdLoadMap }, { "visit", "Visit a towner.", "{towner}", &DebugCmdVisitTowner }, diff --git a/Source/debug.h b/Source/debug.h index a9ed007bd..62e35fbf4 100644 --- a/Source/debug.h +++ b/Source/debug.h @@ -8,6 +8,7 @@ #include #include "engine.h" +#include "engine/cel_sprite.hpp" #include "miniwin/miniwin.h" #include "utils/stdcompat/optional.hpp"