diff options
| author | cracker64 <cracker642@gmail.com> | 2011-08-06 03:16:30 (GMT) |
|---|---|---|
| committer | cracker64 <cracker642@gmail.com> | 2011-08-06 03:16:30 (GMT) |
| commit | 83e4f885da2506f4ce724630777816c26cf7c8c5 (patch) | |
| tree | 7c433aa6518a06eaf04a9042187d4f88f2cc0b52 /src | |
| parent | 6dedc285170d286b61c41558c6c0b187747e97ec (diff) | |
| download | powder-83e4f885da2506f4ce724630777816c26cf7c8c5.zip powder-83e4f885da2506f4ce724630777816c26cf7c8c5.tar.gz | |
Added tmp2 for tpt.get_property and tpt.set_property
Diffstat (limited to 'src')
| -rw-r--r-- | src/luaconsole.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/luaconsole.c b/src/luaconsole.c index 5209689..b0c234d 100644 --- a/src/luaconsole.c +++ b/src/luaconsole.c @@ -437,6 +437,9 @@ int luatpt_set_property(lua_State* l) } else if (strcmp(prop,"tmp")==0){ offset = offsetof(particle, tmp); format = 1; + } else if (strcmp(prop,"tmp2")==0){ + offset = offsetof(particle, tmp2); + format = 1; } else if (strcmp(prop,"vy")==0){ offset = offsetof(particle, vy); format = 2; @@ -577,6 +580,10 @@ int luatpt_get_property(lua_State* l) lua_pushinteger(l, parts[i].tmp); return 1; } + if (strcmp(prop,"tmp2")==0){ + lua_pushinteger(l, parts[i].tmp2); + return 1; + } if (strcmp(prop,"vy")==0){ lua_pushnumber(l, (double)parts[i].vy); return 1; |
