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
@@ -166,7 +166,7 @@ HelpText=ScreenString("HelpTextNormal")
IdleCommentSeconds=0
IdleTimeoutSeconds=0
TimerSeconds=0
UpdateOnMessage="PlayerJoined"
UpdateOnMessage=""
PrevScreen="ScreenTitleMenu"
ChoiceNames="1,2,3"
# The "name" here affects the announcer, eg. "ScreenSelectStyle comment single".
+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 );