Add mapexplored(), mapreveal() commands

This commit is contained in:
mothbeanie
2023-08-23 13:03:23 -07:00
committed by Misa Elizabeth Kai
parent c04c6bc552
commit 8a00ea7aab
4 changed files with 50 additions and 5 deletions

View File

@@ -5930,6 +5930,10 @@ void Game::customloadquick(const std::string& savfile)
{
map.customshowmm = help.Int(pText);
}
else if (SDL_strcmp(pKey, "mapreveal") == 0)
{
map.revealmap = help.Int(pText);
}
else if (SDL_strcmp(pKey, "disabletemporaryaudiopause") == 0)
{
disabletemporaryaudiopause = help.Int(pText);
@@ -6369,6 +6373,8 @@ bool Game::customsavequick(const std::string& savfile)
xml::update_tag(msgs, "showminimap", (int) map.customshowmm);
xml::update_tag(msgs, "mapreveal", (int) map.revealmap);
xml::update_tag(msgs, "disabletemporaryaudiopause", (int) disabletemporaryaudiopause);
xml::update_tag(msgs, "showtrinkets", (int) map.showtrinkets);