- Timestamp:
- Sep 23, 2010, 11:54:16 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/modules/notifications/NotificationManager.cc
r7484 r7486 116 116 @param sender 117 117 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) 120 122 { 121 123 // 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) 123 125 { 124 126 Notification* notification = new Notification(message);
Note: See TracChangeset
for help on using the changeset viewer.