summaryrefslogtreecommitdiff
path: root/src/situation.cpp
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2011-12-29 17:03:20 -0700
committerMike Buland <eichlan@xagasoft.com>2011-12-29 17:03:20 -0700
commitf404d991aa53ed81855e51b597bfe1d5c2288b42 (patch)
treed2ce081cc722eccc089591c63ea0a345b4b4701c /src/situation.cpp
parent1bd7f709f5217b248fcb3a4c7be2eeca84fec795 (diff)
downloadstage-f404d991aa53ed81855e51b597bfe1d5c2288b42.tar.gz
stage-f404d991aa53ed81855e51b597bfe1d5c2288b42.tar.bz2
stage-f404d991aa53ed81855e51b597bfe1d5c2288b42.tar.xz
stage-f404d991aa53ed81855e51b597bfe1d5c2288b42.zip
Most operators work, as well as if/then/else.
Loops should be very easy, but we don't have lists working yet, next is scope selection.
Diffstat (limited to 'src/situation.cpp')
-rw-r--r--src/situation.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/situation.cpp b/src/situation.cpp
index d7f98aa..8221b50 100644
--- a/src/situation.cpp
+++ b/src/situation.cpp
@@ -37,11 +37,13 @@ void Situation::exec( class GameState &gState, Situation::Mode m )
37 switch( m ) 37 switch( m )
38 { 38 {
39 case modeSetup: 39 case modeSetup:
40 gState.parse( pAstSetup ); 40 if( pAstSetup )
41 gState.parse( pAstSetup );
41 break; 42 break;
42 43
43 case modeEnter: 44 case modeEnter:
44 gState.parse( pAstEnter ); 45 if( pAstEnter )
46 gState.parse( pAstEnter );
45 break; 47 break;
46 } 48 }
47} 49}