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, 6 insertions, 1 deletions
diff --git a/src/gamestate.cpp b/src/gamestate.cpp
index 2032d5c..57dbe2f 100644
--- a/src/gamestate.cpp
+++ b/src/gamestate.cpp
@@ -10,7 +10,8 @@ using namespace Bu;
10 10
11GameState::GameState( Game *pGame ) : 11GameState::GameState( Game *pGame ) :
12 pGame( pGame ), 12 pGame( pGame ),
13 bRunning( true ) 13 bRunning( true ),
14 bReturnOnly( false )
14{ 15{
15} 16}
16 17
@@ -498,6 +499,8 @@ void GameState::parse( const AstBranch::NodeList &lCode )
498 break; 499 break;
499 500
500 case AstNode::tReturn: 501 case AstNode::tReturn:
502 bReturnOnly = true;
503 bEscape = true;
501 return; 504 return;
502 break; 505 break;
503 506
@@ -536,6 +539,8 @@ void GameState::parse( const AstBranch::NodeList &lCode )
536 dynamic_cast<const AstLeafLiteral *>(*i) 539 dynamic_cast<const AstLeafLiteral *>(*i)
537 ->getValue().getString() 540 ->getValue().getString()
538 ); 541 );
542 bReturnOnly = false;
543 bEscape = false;
539 break; 544 break;
540 545
541 // tBranch 546 // tBranch