1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2024-12-29 00:05:50 +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:
fgenesis 2015-08-15 21:16:48 +02:00
parent e8dc99b30d
commit 9285ce49bd

View file

@ -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;