Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 24, 2010, 4:01:04 PM (15 years ago)
Author:
dafrick
Message:

Mostly more documentation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/modules/notifications/NotificationManager.cc

    r7488 r7489  
    104104        // Destroys all NotificationQueues that have been registered with the NotificationManager.
    105105        for(std::map<const std::string, NotificationQueue*>::iterator it = this->queues_.begin(); it != this->queues_.end(); it++)
    106         {
    107106            it->second->destroy(true);
    108         }
     107
    109108        this->queues_.clear();
    110109    }
     
    343342    void NotificationManager::enterEditMode(void)
    344343    {
    345         GUIManager::getInstance().hideGUI("NotificationLayer");
    346         GUIManager::getInstance().showGUI("NotificationLayer", false, false);
    347         GUIManager::getInstance().getLuaState()->doString("NotificationLayer.enterEditMode()");
     344        if(GameMode::showsGraphics())
     345        {
     346            GUIManager::getInstance().hideGUI("NotificationLayer");
     347            GUIManager::getInstance().showGUI("NotificationLayer", false, false);
     348            GUIManager::getInstance().getLuaState()->doString("NotificationLayer.enterEditMode()");
     349        }
    348350    }
    349351
Note: See TracChangeset for help on using the changeset viewer.