diff options
Diffstat (limited to 'src/functiondisplay.cpp')
-rw-r--r-- | src/functiondisplay.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/functiondisplay.cpp b/src/functiondisplay.cpp index 7328293..2f2209c 100644 --- a/src/functiondisplay.cpp +++ b/src/functiondisplay.cpp | |||
@@ -1,7 +1,9 @@ | |||
1 | #include "functiondisplay.h" | 1 | #include "functiondisplay.h" |
2 | 2 | ||
3 | #include "smlnode.h" | ||
3 | #include <bu/sio.h> | 4 | #include <bu/sio.h> |
4 | #include "gamestate.h" | 5 | #include "gamestate.h" |
6 | #include "interface.h" | ||
5 | 7 | ||
6 | using namespace Bu; | 8 | using namespace Bu; |
7 | 9 | ||
@@ -16,7 +18,9 @@ FunctionDisplay::~FunctionDisplay() | |||
16 | void FunctionDisplay::call( class GameState &gState ) | 18 | void FunctionDisplay::call( class GameState &gState ) |
17 | { | 19 | { |
18 | Bu::String s = gState.popDeref().to( Variable::tString ).getString(); | 20 | Bu::String s = gState.popDeref().to( Variable::tString ).getString(); |
19 | sio << format( s ) << sio.nl; | 21 | SmlNode *pNode = SmlNode::parse( s ); |
22 | gState.getInterface()->display( pNode ); | ||
23 | delete pNode; | ||
20 | 24 | ||
21 | /* | 25 | /* |
22 | Variable v = gState.popDeref(); | 26 | Variable v = gState.popDeref(); |