summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2012-02-08 00:22:34 -0700
committerMike Buland <eichlan@xagasoft.com>2012-02-08 00:22:34 -0700
commit11554a9e5c92a98129b42598495abe7503d9208c (patch)
tree91182c1737204d60bcbbc038f2743e60d09faedb /src/game.cpp
parent3a1a20a9bc7008abb7de241c44cc0d7a3d4a77d9 (diff)
downloadstage-11554a9e5c92a98129b42598495abe7503d9208c.tar.gz
stage-11554a9e5c92a98129b42598495abe7503d9208c.tar.bz2
stage-11554a9e5c92a98129b42598495abe7503d9208c.tar.xz
stage-11554a9e5c92a98129b42598495abe7503d9208c.zip
Everything seems to work now, goto, return, etc.
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/game.cpp b/src/game.cpp
index 753f83b..19a31f7 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -48,7 +48,14 @@ Variable Game::getParam( const Bu::String &sName ) const
48 48
49Situation *Game::getSituation( const Bu::String &sName ) 49Situation *Game::getSituation( const Bu::String &sName )
50{ 50{
51 return hSituation.get( sName ); 51 try
52 {
53 return hSituation.get( sName );
54 }
55 catch( Bu::HashException &e )
56 {
57 throw Bu::ExceptionBase(("No such situation <<" + sName + ">>").getStr());
58 }
52} 59}
53 60
54bool Game::execCommand( class GameState &gState, const Bu::StringList &lCmd ) 61bool Game::execCommand( class GameState &gState, const Bu::StringList &lCmd )