- Timestamp:
- Sep 3, 2010, 3:55:32 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/notifications/src/modules/notifications/Notification.cc
r7326 r7338 94 94 registerVariable(this->message_); 95 95 registerVariable(this->sender_); 96 registerVariable(this->sent_ );96 registerVariable(this->sent_, ObjectDirection::Bidirectional); 97 97 } 98 98 … … 108 108 { 109 109 110 callMemberNetworkFunction(Notification, sendHelper, this->getObjectID(), clientId, clientId, sender); 110 if(GameMode::isMaster()) 111 { 112 this->sendHelper(sender); 113 } 114 else 115 { 116 callMemberNetworkFunction(Notification, sendHelper, this->getObjectID(), clientId, sender); 117 } 111 118 112 119 return true; 113 120 } 114 121 115 bool Notification::sendHelper( unsigned int clientId,const std::string& sender)122 bool Notification::sendHelper(const std::string& sender) 116 123 { 117 124 if(this->isSent()) //TODO: Needed?
Note: See TracChangeset
for help on using the changeset viewer.