Changeset 7462 for code/trunk/src/modules/notifications
- Timestamp:
- Sep 17, 2010, 8:49:06 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/modules/notifications/Notification.cc
r7456 r7462 36 36 #include "core/CoreIncludes.h" 37 37 #include "network/NetworkFunction.h" 38 #include "network/Host.h" 38 39 #include "NotificationManager.h" 39 40 … … 43 44 CreateUnloadableFactory(Notification); 44 45 45 registerMemberNetworkFunction(Notification, send Helper);46 registerMemberNetworkFunction(Notification, send); 46 47 47 48 /** … … 113 114 bool Notification::send(unsigned int clientId, const std::string & sender = NotificationManager::NONE) 114 115 { 115 116 if(GameMode::isStandalone()) 116 if(GameMode::isStandalone() || Host::getPlayerID() == clientId) 117 117 { 118 118 this->sendHelper(sender); 119 119 } 120 else 120 else if(GameMode::isServer()) 121 121 { 122 callMemberNetworkFunction(Notification, send Helper, this->getObjectID(), clientId, sender);122 callMemberNetworkFunction(Notification, send, this->getObjectID(), clientId, clientId, sender); 123 123 } 124 124
Note: See TracChangeset
for help on using the changeset viewer.