all ScreenSelect derivatives already have a hard-coded subscribe to PlayerJoined

This commit is contained in:
Chris Danford
2009-02-10 22:44:28 +00:00
parent 370e441783
commit 7114679d91
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ void ScreenSelect::Init()
split( UPDATE_ON_MESSAGE, ",", m_asSubscribedMessages );
for( unsigned i = 0; i < m_asSubscribedMessages.size(); ++i )
MESSAGEMAN->Subscribe( this, m_asSubscribedMessages[i] );
// Only subscribe once.
// Subscribe to PlayerJoined, if not already.
if( !MESSAGEMAN->IsSubscribedToMessage(this, Message_PlayerJoined) )
this->SubscribeToMessage( Message_PlayerJoined );