The Vertex struct is now recognized as POD by C++, also fixed the name to be consistent with other love structs

This commit is contained in:
Alex Szpakowski
2013-09-24 11:09:18 -03:00
parent 8d5ddb9e34
commit 5de43a7207
24 changed files with 127 additions and 129 deletions
@@ -47,7 +47,7 @@ int w_Geometry_getVertex(lua_State *L)
size_t i = size_t(luaL_checkinteger(L, 2));
EXCEPT_GUARD(
const vertex &v = geom->getVertex(i-1);
const Vertex &v = geom->getVertex(i-1);
lua_pushnumber(L, v.x);
lua_pushnumber(L, v.y);
lua_pushnumber(L, v.s);
@@ -66,7 +66,7 @@ int w_Geometry_setVertex(lua_State *L)
Geometry *geom = luax_checkgeometry(L, 1);
size_t i = size_t(luaL_checkinteger(L, 2));
vertex v;
Vertex v;
if (lua_istable(L, 3))
{