aboutsummaryrefslogtreecommitdiff
path: root/src/game/Level1.cpp
diff options
context:
space:
mode:
authorclick <none@none>2010-04-21 23:14:37 +0200
committerclick <none@none>2010-04-21 23:14:37 +0200
commit12950d1c165204e46b735c0f1a58bb97834be647 (patch)
tree04623cc52c98017155e45f52b6d266f097f023ae /src/game/Level1.cpp
parent3a826ecfeea9222fdd4f5528a4e5e09eb7a4a2ba (diff)
Update trigger visibility when doing gm on/off
Fix by liberate --HG-- branch : trunk
Diffstat (limited to 'src/game/Level1.cpp')
-rw-r--r--src/game/Level1.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/game/Level1.cpp b/src/game/Level1.cpp
index ba82b7aff7b..b06e3628a27 100644
--- a/src/game/Level1.cpp
+++ b/src/game/Level1.cpp
@@ -228,6 +228,7 @@ bool ChatHandler::HandleGMCommand(const char* args)
{
m_session->GetPlayer()->SetGameMaster(true);
m_session->SendNotification(LANG_GM_ON);
+ m_session->GetPlayer()->UpdateTriggerVisibility();
#ifdef _DEBUG_VMAPS
VMAP::IVMapManager *vMapManager = VMAP::VMapFactory::createOrGetVMapManager();
vMapManager->processCommand("stoplog");
@@ -239,6 +240,7 @@ bool ChatHandler::HandleGMCommand(const char* args)
{
m_session->GetPlayer()->SetGameMaster(false);
m_session->SendNotification(LANG_GM_OFF);
+ m_session->GetPlayer()->UpdateTriggerVisibility();
#ifdef _DEBUG_VMAPS
VMAP::IVMapManager *vMapManager = VMAP::VMapFactory::createOrGetVMapManager();
vMapManager->processCommand("startlog");