The emission rate for ParticleSystems is no longer restricted to integer numbers.

This commit is contained in:
Alex Szpakowski
2014-01-27 23:42:26 -04:00
parent d70023e350
commit 6b538b5827
3 changed files with 8 additions and 8 deletions
@@ -127,7 +127,7 @@ int w_ParticleSystem_getInsertMode(lua_State *L)
int w_ParticleSystem_setEmissionRate(lua_State *L)
{
ParticleSystem *t = luax_checkparticlesystem(L, 1);
int arg1 = luaL_checkint(L, 2);
float arg1 = (float) luaL_checknumber(L, 2);
EXCEPT_GUARD(t->setEmissionRate(arg1);)
return 0;
}
@@ -135,7 +135,7 @@ int w_ParticleSystem_setEmissionRate(lua_State *L)
int w_ParticleSystem_getEmissionRate(lua_State *L)
{
ParticleSystem *t = luax_checkparticlesystem(L, 1);
lua_pushinteger(L, t->getEmissionRate());
lua_pushnumber(L, t->getEmissionRate());
return 1;
}