mirror of
https://github.com/love2d/love.git
synced 2026-08-16 08:11:02 +02:00
Cleaned up some code, the 'ry' parameter of love.graphics.rectangle now defaults to the value of 'rx' rather than defaulting to 0.
This commit is contained in:
+1
-1
@@ -132,7 +132,7 @@ public:
|
||||
private:
|
||||
|
||||
T *object;
|
||||
|
||||
|
||||
}; // StrongRef
|
||||
|
||||
} // love
|
||||
|
||||
@@ -463,9 +463,9 @@ T *luax_optmodule(lua_State *L, love::Type type)
|
||||
|
||||
if (!typeFlags[u->type][type])
|
||||
luaL_error(L, "Incorrect module %s", name);
|
||||
|
||||
|
||||
lua_pop(L, 2);
|
||||
|
||||
|
||||
return (T *) u->object;
|
||||
}
|
||||
|
||||
@@ -510,7 +510,6 @@ int luax_catchexcept(lua_State *L, const T& func)
|
||||
return luaL_error(L, "%s", lua_tostring(L, -1));
|
||||
|
||||
return 0;
|
||||
|
||||
}
|
||||
|
||||
template <typename T, typename F>
|
||||
@@ -532,9 +531,8 @@ int luax_catchexcept(lua_State *L, const T& func, const F& finallyfunc)
|
||||
|
||||
if (should_error)
|
||||
return luaL_error(L, "%s", lua_tostring(L, -1));
|
||||
|
||||
|
||||
return 0;
|
||||
|
||||
}
|
||||
|
||||
} // love
|
||||
|
||||
Reference in New Issue
Block a user