Only subscribe to PlayerJoined a single time.

This commit is contained in:
Steve Checkoway
2009-01-05 07:00:49 +00:00
parent a15f9e4968
commit f6edbc8a28
+3 -1
View File
@@ -28,7 +28,9 @@ void ScreenSelect::Init()
split( UPDATE_ON_MESSAGE, ",", m_asSubscribedMessages );
for( unsigned i = 0; i < m_asSubscribedMessages.size(); ++i )
MESSAGEMAN->Subscribe( this, m_asSubscribedMessages[i] );
this->SubscribeToMessage( Message_PlayerJoined );
// Only subscribe once.
if( !this->IsSubscribedToMessage(Message_PlayerJoined) )
this->SubscribeToMessage( Message_PlayerJoined );
//
// Load choices