fix a bug with the urlnoexit GameCommand (it would pop up a message saying it couldn't launch the browser, even though it did.)

This commit is contained in:
AJ Kelly
2010-06-26 17:28:46 -05:00
parent d0536e2544
commit 1c39a7db20
2 changed files with 8 additions and 0 deletions
+2
View File
@@ -784,8 +784,10 @@ void GameCommand::ApplySelf( const vector<PlayerNumber> &vpns ) const
if( !m_sUrl.empty() )
{
if( HOOKS->GoToURL( m_sUrl ) )
{
if( m_bUrlExits )
SCREENMAN->SetNewScreen( "ScreenExit" );
}
else
ScreenPrompt::Prompt( SM_None, COULD_NOT_LAUNCH_BROWSER );
}