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:
Alex Szpakowski
2015-05-27 17:36:27 -03:00
parent 2a4524e5c0
commit 0f986b10aa
25 changed files with 119 additions and 139 deletions
+1 -1
View File
@@ -132,7 +132,7 @@ public:
private:
T *object;
}; // StrongRef
} // love
+3 -5
View File
@@ -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