mirror of
https://github.com/love2d/love.git
synced 2026-08-12 08:30:56 +02:00
Also fixed love.window.setMode to fail instead of bug out when trying to set a fullscreen mode which is too large for the monitor.
This commit is contained in:
@@ -98,9 +98,9 @@ int Physics::newPolygonShape(lua_State *L)
|
||||
// 3 to 8 (b2_maxPolygonVertices) vertices
|
||||
int vcount = argc / 2;
|
||||
if (vcount < 3)
|
||||
luaL_error(L, "Expected a minimum of 3 vertices, got %d.", vcount);
|
||||
return luaL_error(L, "Expected a minimum of 3 vertices, got %d.", vcount);
|
||||
else if (vcount > b2_maxPolygonVertices)
|
||||
luaL_error(L, "Expected a maximum of %d vertices, got %d.", b2_maxPolygonVertices, vcount);
|
||||
return luaL_error(L, "Expected a maximum of %d vertices, got %d.", b2_maxPolygonVertices, vcount);
|
||||
|
||||
b2PolygonShape *s = new b2PolygonShape();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user