diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-04-09 11:39:45 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-04-09 11:39:45 (GMT) |
| commit | da9cec2c3bbf0ff46642ffbbf918d3afa513069a (patch) | |
| tree | 5ae240c4d53c8f29b58a55c5a2e43d3aa558c91b /src/cat | |
| parent | 798c78b04eda4bf8bf9b9dc4997692e0010eb93c (diff) | |
| download | powder-da9cec2c3bbf0ff46642ffbbf918d3afa513069a.zip powder-da9cec2c3bbf0ff46642ffbbf918d3afa513069a.tar.gz | |
Remove unused code
Diffstat (limited to 'src/cat')
| -rw-r--r-- | src/cat/LuaScriptInterface.cpp | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/src/cat/LuaScriptInterface.cpp b/src/cat/LuaScriptInterface.cpp index bd0f013..84d1569 100644 --- a/src/cat/LuaScriptInterface.cpp +++ b/src/cat/LuaScriptInterface.cpp @@ -1160,43 +1160,6 @@ int luatpt_set_property(lua_State* l) offset = luacon_ci->GetPropertyOffset(prop, format); if(offset == -1) return luaL_error(l, "Invalid property '%s'", prop); - //TODO: Use particle_getproperty - /*if (strcmp(prop,"type")==0){ - offset = offsetof(particle, type); - format = 3; - } else if (strcmp(prop,"life")==0){ - offset = offsetof(particle, life); - format = 1; - } else if (strcmp(prop,"ctype")==0){ - offset = offsetof(particle, ctype); - format = 4; - } else if (strcmp(prop,"temp")==0){ - offset = offsetof(particle, temp); - format = 2; - } 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; - } else if (strcmp(prop,"vx")==0){ - offset = offsetof(particle, vx); - format = 2; - } else if (strcmp(prop,"x")==0){ - offset = offsetof(particle, x); - format = 2; - } 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); - }*/ if(acount>2){ if(!lua_isnumber(l, acount) && lua_isstring(l, acount)){ name = (char*)luaL_optstring(l, acount, "none"); |
