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
+6
View File
@@ -9,6 +9,12 @@ Not all changes are documented, for various reasons.
supported but exist anyways.)
_____________________________________________________________________________
20100626
--------
* Fixed a bug with urlnoexit GameCommand always returning the "Could not
launch web browser" message.
* Removed some untested/non-working Model Lua bindings.
20100623
--------
* Implement the last remaining SampleMusicPreviewMode: StartToPreview.
+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 );
}