From 1c39a7db20ca4bf07bf5ab81f93595c55e0736bc Mon Sep 17 00:00:00 2001 From: AJ Kelly Date: Sat, 26 Jun 2010 17:28:46 -0500 Subject: [PATCH] fix a bug with the urlnoexit GameCommand (it would pop up a message saying it couldn't launch the browser, even though it did.) --- Docs/Changelog_sm-ssc.txt | 6 ++++++ src/GameCommand.cpp | 2 ++ 2 files changed, 8 insertions(+) diff --git a/Docs/Changelog_sm-ssc.txt b/Docs/Changelog_sm-ssc.txt index 22da4490d8..671783f792 100644 --- a/Docs/Changelog_sm-ssc.txt +++ b/Docs/Changelog_sm-ssc.txt @@ -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. diff --git a/src/GameCommand.cpp b/src/GameCommand.cpp index b19aa2d0c2..4d9aa65b80 100644 --- a/src/GameCommand.cpp +++ b/src/GameCommand.cpp @@ -784,8 +784,10 @@ void GameCommand::ApplySelf( const vector &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 ); }