mirror of
https://github.com/love2d/love-android.git
synced 2026-08-15 15:51:20 +02:00
updated to latest love-android revision (aada9b59bcdf)
This commit is contained in:
@@ -93,8 +93,9 @@ EdgeShape *Physics::newEdgeShape(float x1, float y1, float x2, float y2)
|
||||
int Physics::newPolygonShape(lua_State *L)
|
||||
{
|
||||
int argc = lua_gettop(L);
|
||||
if (argc%2 != 0)
|
||||
return luaL_error(L, "Number of vertices must be a multiple of two.");
|
||||
if (argc % 2 != 0)
|
||||
return luaL_error(L, "Number of vertex components must be a multiple of two.");
|
||||
|
||||
// 3 to 8 (b2_maxPolygonVertices) vertices
|
||||
int vcount = argc / 2;
|
||||
if (vcount < 3)
|
||||
|
||||
Reference in New Issue
Block a user