mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2024-11-14 21:39:09 +00:00
Make world map respect SeeMapMode (like the minimap already does)
This makes the show or hide map status consistent for both map and minimap.
This commit is contained in:
parent
e8dc99b30d
commit
9285ce49bd
1 changed files with 4 additions and 1 deletions
|
@ -1372,7 +1372,10 @@ void WorldMapRender::toggle(bool turnON)
|
|||
|
||||
if (!this->on && !dsq->game->avatar->isInputEnabled()) return;
|
||||
|
||||
if (dsq->game->avatar && (dsq->game->avatar->isInDarkness() && dsq->continuity.form != FORM_SUN))
|
||||
const SeeMapMode mapmode = dsq->game->avatar->getSeeMapMode();
|
||||
|
||||
if (mapmode == SEE_MAP_NEVER
|
||||
|| (mapmode == SEE_MAP_DEFAULT && dsq->game->avatar->isInDarkness() && dsq->continuity.form != FORM_SUN))
|
||||
{
|
||||
core->sound->playSfx("denied");
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue