summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/luaconsole.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/luaconsole.c b/src/luaconsole.c
index 5febe48..77a35fd 100644
--- a/src/luaconsole.c
+++ b/src/luaconsole.c
@@ -464,6 +464,9 @@ int luatpt_set_property(lua_State* l)
} else if (strcmp(prop,"y")==0){
offset = offsetof(particle, y);
format = 2;
+ } else if (strcmp(prop,"dcolour")==0){
+ offset = offsetof(particle, dcolour);
+ format = 1;
} else {
return luaL_error(l, "Invalid property '%s'", prop);
}
@@ -612,6 +615,10 @@ int luatpt_get_property(lua_State* l)
lua_pushnumber(l, parts[i].y);
return 1;
}
+ if (strcmp(prop,"dcolour")==0){
+ lua_pushinteger(l, parts[i].dcolour);
+ return 1;
+ }
if (strcmp(prop,"id")==0){
lua_pushnumber(l, i);
return 1;