all ScreenSelect derivatives already have a hard-coded subscribe to PlayerJoined
This commit is contained in:
@@ -166,7 +166,7 @@ HelpText=ScreenString("HelpTextNormal")
|
|||||||
IdleCommentSeconds=0
|
IdleCommentSeconds=0
|
||||||
IdleTimeoutSeconds=0
|
IdleTimeoutSeconds=0
|
||||||
TimerSeconds=0
|
TimerSeconds=0
|
||||||
UpdateOnMessage="PlayerJoined"
|
UpdateOnMessage=""
|
||||||
PrevScreen="ScreenTitleMenu"
|
PrevScreen="ScreenTitleMenu"
|
||||||
ChoiceNames="1,2,3"
|
ChoiceNames="1,2,3"
|
||||||
# The "name" here affects the announcer, eg. "ScreenSelectStyle comment single".
|
# The "name" here affects the announcer, eg. "ScreenSelectStyle comment single".
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ void ScreenSelect::Init()
|
|||||||
split( UPDATE_ON_MESSAGE, ",", m_asSubscribedMessages );
|
split( UPDATE_ON_MESSAGE, ",", m_asSubscribedMessages );
|
||||||
for( unsigned i = 0; i < m_asSubscribedMessages.size(); ++i )
|
for( unsigned i = 0; i < m_asSubscribedMessages.size(); ++i )
|
||||||
MESSAGEMAN->Subscribe( this, m_asSubscribedMessages[i] );
|
MESSAGEMAN->Subscribe( this, m_asSubscribedMessages[i] );
|
||||||
// Only subscribe once.
|
// Subscribe to PlayerJoined, if not already.
|
||||||
if( !MESSAGEMAN->IsSubscribedToMessage(this, Message_PlayerJoined) )
|
if( !MESSAGEMAN->IsSubscribedToMessage(this, Message_PlayerJoined) )
|
||||||
this->SubscribeToMessage( Message_PlayerJoined );
|
this->SubscribeToMessage( Message_PlayerJoined );
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user