summaryrefslogtreecommitdiff
path: root/src/gamebuilder.cpp
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2011-12-29 10:41:23 -0700
committerMike Buland <eichlan@xagasoft.com>2011-12-29 10:41:23 -0700
commit79dce6268850fb1b0d76c15d5399d66bcd286e5f (patch)
tree1ab0e20ce928b93262da820c2aa8a91e86a801f9 /src/gamebuilder.cpp
parentbae6192c54533e8da95d8ae1ed4d4eccee28c39a (diff)
downloadstage-79dce6268850fb1b0d76c15d5399d66bcd286e5f.tar.gz
stage-79dce6268850fb1b0d76c15d5399d66bcd286e5f.tar.bz2
stage-79dce6268850fb1b0d76c15d5399d66bcd286e5f.tar.xz
stage-79dce6268850fb1b0d76c15d5399d66bcd286e5f.zip
About to add the processing core.
Diffstat (limited to 'src/gamebuilder.cpp')
-rw-r--r--src/gamebuilder.cpp13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/gamebuilder.cpp b/src/gamebuilder.cpp
index e6c1f38..45aee50 100644
--- a/src/gamebuilder.cpp
+++ b/src/gamebuilder.cpp
@@ -139,10 +139,17 @@ void GameBuilder::addCommandParam( const Bu::String &sValue )
139 139
140void GameBuilder::closeCommand() 140void GameBuilder::closeCommand()
141{ 141{
142 pCurCmd->print();
143 sio << *pCurRoot << sio.nl;
144 pCurCmd->setAst( pCurRoot ); 142 pCurCmd->setAst( pCurRoot );
145 delete pCurCmd; 143 pCurRoot = pCurNode = NULL;
144 pCurCmd->print();
145 if( bGlobal )
146 {
147 pGame->csGlobal.addCommand( pCurCmd );
148 }
149 else
150 {
151 delete pCurCmd;
152 }
146 pCurCmd = NULL; 153 pCurCmd = NULL;
147} 154}
148 155