Updated to love-android changeset 3b5e5e182a00

This commit is contained in:
Martin Felis
2014-01-12 21:21:46 +01:00
parent 0ff0941068
commit 69b200b144
396 changed files with 52558 additions and 2317 deletions
+15 -7
View File
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2006-2013 LOVE Development Team
* Copyright (c) 2006-2014 LOVE Development Team
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
@@ -149,16 +149,24 @@ int Physics::newChainShape(lua_State *L)
lua_pop(L, 2);
}
if (loop)
s->CreateLoop(vecs, vcount);
else
s->CreateChain(vecs, vcount);
try
{
if (loop)
s->CreateLoop(vecs, vcount);
else
s->CreateChain(vecs, vcount);
}
catch (love::Exception &)
{
delete[] vecs;
throw;
}
ChainShape *c = new ChainShape(s);
delete[] vecs;
luax_pushtype(L, "ChainShape", PHYSICS_CHAIN_SHAPE_T, c);
ChainShape *c = new ChainShape(s);
luax_pushtype(L, "ChainShape", PHYSICS_CHAIN_SHAPE_T, c);
return 1;
}