From 6ff2d3e4c3596d1ce5853f84d5eb3bde5acb5850 Mon Sep 17 00:00:00 2001 From: Josh Allen Date: Sat, 17 May 2008 14:03:18 +0000 Subject: [PATCH] Fix broken logic that gets the player's name. --- stepmania/src/ScreenSMOnlineLogin.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/stepmania/src/ScreenSMOnlineLogin.cpp b/stepmania/src/ScreenSMOnlineLogin.cpp index b2a07d43bb..91874ad07a 100644 --- a/stepmania/src/ScreenSMOnlineLogin.cpp +++ b/stepmania/src/ScreenSMOnlineLogin.cpp @@ -99,8 +99,7 @@ static LocalizedString ENTER_YOUR_PASSWORD ( "ScreenSMOnlineLogin", "Enter your void ScreenSMOnlineLogin::HandleScreenMessage(const ScreenMessage SM) { RString sLoginQuestion; - if( GAMESTATE->IsPlayerEnabled((PlayerNumber) m_iPlayer) ) - sLoginQuestion = YOU_ARE_LOGGING_ON_AS.GetValue() + "\n" + GAMESTATE->GetPlayerDisplayName((PlayerNumber) m_iPlayer) + "\n" + ENTER_YOUR_PASSWORD.GetValue(); +// if( GAMESTATE->IsPlayerEnabled((PlayerNumber) m_iPlayer) ) if( SM == SM_PasswordDone ) { @@ -116,6 +115,7 @@ void ScreenSMOnlineLogin::HandleScreenMessage(const ScreenMessage SM) } else if( SM == SM_SMOnlinePack ) { + sLoginQuestion = YOU_ARE_LOGGING_ON_AS.GetValue() + "\n" + GAMESTATE->GetPlayerDisplayName((PlayerNumber) m_iPlayer) + "\n" + ENTER_YOUR_PASSWORD.GetValue(); int ResponceCode = NSMAN->m_SMOnlinePacket.Read1(); if (ResponceCode == 0) { @@ -165,6 +165,7 @@ void ScreenSMOnlineLogin::HandleScreenMessage(const ScreenMessage SM) m_iPlayer=0; while(!GAMESTATE->IsPlayerEnabled((PlayerNumber) m_iPlayer)) ++m_iPlayer; + sLoginQuestion = YOU_ARE_LOGGING_ON_AS.GetValue() + "\n" + GAMESTATE->GetPlayerDisplayName((PlayerNumber) m_iPlayer) + "\n" + ENTER_YOUR_PASSWORD.GetValue(); ScreenTextEntry::Password(SM_PasswordDone, sLoginQuestion, NULL ); } return;