Full trigger creation

This commit is contained in:
Kayne Ruse
2015-03-04 02:21:56 +11:00
parent bd68af5875
commit 18a7143926
7 changed files with 61 additions and 57 deletions
+4 -4
View File
@@ -64,10 +64,10 @@ static int setBoundingBox(lua_State* L) {
static int getBoundingBox(lua_State* L) {
TriggerData* trigger = static_cast<TriggerData*>(lua_touserdata(L, 1));
lua_pushnumber(L, trigger->GetBoundingBox().x);
lua_pushnumber(L, trigger->GetBoundingBox().y);
lua_pushnumber(L, trigger->GetBoundingBox().w);
lua_pushnumber(L, trigger->GetBoundingBox().h);
lua_pushinteger(L, trigger->GetBoundingBox().x);
lua_pushinteger(L, trigger->GetBoundingBox().y);
lua_pushinteger(L, trigger->GetBoundingBox().w);
lua_pushinteger(L, trigger->GetBoundingBox().h);
return 4;
}