Changeset 7462
- Timestamp:
- Sep 17, 2010, 8:49:06 PM (14 years ago)
- Location:
- code/trunk/src/modules
- Files:
-
- 2 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 -
code/trunk/src/modules/questsystem/QuestListener.cc
r7456 r7462 44 44 CreateFactory(QuestListener); 45 45 46 // !Initialization of the static variables for the modes as strings.46 // Initialization of the static variables for the modes as strings. 47 47 /*static*/ const std::string QuestListener::ALL = "all"; 48 48 /*static*/ const std::string QuestListener::START = "start";
Note: See TracChangeset
for help on using the changeset viewer.