Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 23, 2010, 11:54:16 PM (14 years ago)
Author:
dafrick
Message:

Cleanup in Script. Some more documenting in Notifications module.

File:
1 edited

Legend:

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

    r7484 r7486  
    116116    @param sender
    117117        The sender that sent the notification.
    118     */
    119     /*static*/ void NotificationManager::sendNotification(const std::string& message, unsigned int clientId, const std::string& sender)
     118    @param isLocal
     119        If this is set to true (false is default), then the Notification is sent to the client where this function is executed, meaning the Notification is sent locally.
     120    */
     121    /*static*/ void NotificationManager::sendNotification(const std::string& message, unsigned int clientId, const std::string& sender, bool isLocal)
    120122    {
    121123        // If we're in standalone mode or we're already no the right client we create and send the Notification.
    122         if(GameMode::isStandalone() || Host::getPlayerID() == clientId)
     124        if(GameMode::isStandalone() || isLocal || Host::getPlayerID() == clientId)
    123125        {
    124126            Notification* notification = new Notification(message);
Note: See TracChangeset for help on using the changeset viewer.