[Orxonox-commit 2643] r7348 - code/branches/notifications/src/modules/notifications

dafrick at orxonox.net dafrick at orxonox.net
Sat Sep 4 09:33:42 CEST 2010


Author: dafrick
Date: 2010-09-04 09:33:42 +0200 (Sat, 04 Sep 2010)
New Revision: 7348

Modified:
   code/branches/notifications/src/modules/notifications/Notification.cc
Log:
Small change such that the server doesn't automatically display all Notifications instead of just the ones that are meant for him.


Modified: code/branches/notifications/src/modules/notifications/Notification.cc
===================================================================
--- code/branches/notifications/src/modules/notifications/Notification.cc	2010-09-03 23:23:31 UTC (rev 7347)
+++ code/branches/notifications/src/modules/notifications/Notification.cc	2010-09-04 07:33:42 UTC (rev 7348)
@@ -93,7 +93,7 @@
     {
         registerVariable(this->message_);
         registerVariable(this->sender_);
-        registerVariable(this->sent_, ObjectDirection::Bidirectional);
+        registerVariable(this->sent_);
     }
 
     /**
@@ -107,7 +107,7 @@
     bool Notification::send(unsigned int clientId, const std::string & sender = NotificationManager::NONE)
     {
 
-        if(GameMode::isMaster())
+        if(GameMode::isStandalone())
         {
             this->sendHelper(sender);
         }




More information about the Orxonox-commit mailing list