summaryrefslogtreecommitdiff
path: root/src/luascript.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/luascript.cc')
-rw-r--r--src/luascript.cc33
1 files changed, 0 insertions, 33 deletions
diff --git a/src/luascript.cc b/src/luascript.cc
index 0619228..7a84d1f 100644
--- a/src/luascript.cc
+++ b/src/luascript.cc
@@ -197,38 +197,6 @@ static int _sleep(lua_State *L)
return 0;
}
-static int _scale(lua_State *L)
-{
- //Pracro::checkParameters(L,
- // Pracro::T_STRING,
- // Pracro::T_END);
-
- double x = lua_tonumber(L, lua_gettop(L));
-
- printf("scale %f\n", x);
-
- lua_getglobal(L, GLOBAL_POINTER);
- LUAScript *lua = (LUAScript*)lua_touserdata(L, lua_gettop(L));
-
- if(!lua)
- {
- lua_pushstring(L, "No LUA pointer!");
- lua_error(L);
- return 1;
- }
-
- if(lua->lua_stop)
- {
- printf("stopping...\n");
- lua_pushstring(L, "stop");
- lua_error(L);
- }
-
- lua->out.setScale(x);
-
- return 0;
-}
-
static int _colour(lua_State *L)
{
//Pracro::checkParameters(L,
@@ -417,7 +385,6 @@ void LUAScript::init()
lua_register(L, "forward", _forward);
lua_register(L, "turn", _turn);
lua_register(L, "speed", _speed);
- lua_register(L, "scale", _scale);
lua_register(L, "reset", _reset);
lua_register(L, "colour", _colour);
lua_register(L, "loadpen", _loadpen);