diff options
| author | Alexander Gavrilov | 2012-06-21 21:26:25 +0400 |
|---|---|---|
| committer | Alexander Gavrilov | 2012-06-21 21:26:25 +0400 |
| commit | 752da9ced5ce2df8cc9638cbf75a769325540e31 (patch) | |
| tree | 0bbf1c817e4c3f663bfe06e2ab3f2c05262952ff /library/LuaTools.cpp | |
| parent | f207714d4225e729fa43d04048d595ad6954521d (diff) | |
| download | dfhack-752da9ced5ce2df8cc9638cbf75a769325540e31.tar.gz dfhack-752da9ced5ce2df8cc9638cbf75a769325540e31.tar.bz2 dfhack-752da9ced5ce2df8cc9638cbf75a769325540e31.tar.xz | |
Move formatting newly-found globals for symbols.xml to lua code.
Diffstat (limited to 'library/LuaTools.cpp')
| -rw-r--r-- | library/LuaTools.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/library/LuaTools.cpp b/library/LuaTools.cpp index 752c341b..48244ded 100644 --- a/library/LuaTools.cpp +++ b/library/LuaTools.cpp @@ -256,8 +256,11 @@ static int lua_dfhack_color(lua_State *S) luaL_argerror(S, 1, "invalid color value"); color_ostream *out = Lua::GetOutput(S); - if (out) + if (out) { + lua_pushinteger(S, (int)out->color()); out->color(color_ostream::color_value(cv)); + return 1; + } return 0; } |
