1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2024-11-15 05:59:16 +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 (!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"); core->sound->playSfx("denied");
return; return;