Fixed ParticleSystem:setAreaSpread("none") to not require x/y arguments (resolves issue #738)

This commit is contained in:
Alex Szpakowski
2013-09-17 00:54:55 -03:00
parent eec2beffdd
commit 21d1e7737c
3 changed files with 15 additions and 10 deletions
+1 -1
View File
@@ -190,7 +190,7 @@ int w_setFullscreen(lua_State *L)
bool fullscreen = luax_toboolean(L, 1);
Window::FullscreenType fstype = Window::FULLSCREEN_TYPE_MAX_ENUM;
const char *typestr = lua_isnoneornil(L, 2) ? 0 : lua_tostring(L, 2);
const char *typestr = lua_isnoneornil(L, 2) ? 0 : luaL_checkstring(L, 2);
if (typestr && !Window::getConstant(typestr, fstype))
return luaL_error(L, "Invalid fullscreen type: %s", typestr);