summaryrefslogtreecommitdiff
path: root/src/gamestate.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gamestate.cpp')
-rw-r--r--src/gamestate.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gamestate.cpp b/src/gamestate.cpp
index 041af86..99cc749 100644
--- a/src/gamestate.cpp
+++ b/src/gamestate.cpp
@@ -520,8 +520,8 @@ void GameState::parse( const AstBranch::NodeList &lCode )
520 bEscape = false; 520 bEscape = false;
521 for( AstBranch::NodeList::const_iterator i = lCode.begin(); i; i++ ) 521 for( AstBranch::NodeList::const_iterator i = lCode.begin(); i; i++ )
522 { 522 {
523 // sio << "Stack: " << lStack << sio.nl; 523 sio << "Stack: " << lStack << sio.nl;
524 // sio << "exec: " << (*i)->getType() << sio.nl; 524 sio << "exec: " << (*i)->getType() << sio.nl;
525 switch( (*i)->getType() ) 525 switch( (*i)->getType() )
526 { 526 {
527 // tLeaf 527 // tLeaf
@@ -705,6 +705,8 @@ void GameState::parse( const AstBranch::NodeList &lCode )
705 throw Bu::ExceptionBase("You cannot goto anything but a situation."); 705 throw Bu::ExceptionBase("You cannot goto anything but a situation.");
706 gotoSituation( x.getString() ); 706 gotoSituation( x.getString() );
707 bEscape = true; 707 bEscape = true;
708 sio << "Initial return" << sio.nl;
709 push( Variable( Variable::tNull ) );
708 return; 710 return;
709 } 711 }
710 break; 712 break;
@@ -908,6 +910,7 @@ void GameState::parse( const AstBranch::NodeList &lCode )
908 910
909 if( bEscape || !bRunning ) 911 if( bEscape || !bRunning )
910 { 912 {
913 sio << "Returning from" << sio.nl;
911 return; 914 return;
912 } 915 }
913 } 916 }