Actually look in the right place for subscriptions.

This commit is contained in:
Steve Checkoway
2009-01-05 08:46:22 +00:00
parent 73f3c134f8
commit 3f800ece3d
3 changed files with 9 additions and 3 deletions
+6
View File
@@ -218,6 +218,12 @@ void MessageManager::Broadcast( MessageID m ) const
Broadcast( MessageIDToString(m) );
}
bool MessageManager::IsSubscribedToMessage( IMessageSubscriber* pSubscriber, const RString &sMessage ) const
{
SubscribersSet& subs = g_MessageToSubscribers[sMessage];
return subs.find( pSubscriber ) != subs.end();
}
void IMessageSubscriber::ClearMessages( const RString sMessage )
{
}