mirror of
https://github.com/love2d/love.git
synced 2026-08-14 10:13:46 +02:00
Made some float/int/unsigned char conversions explicit, fixed ParticleSystem:getColors, fixed love.mouse.isDown with x1 and x2 buttons
This commit is contained in:
@@ -168,7 +168,7 @@ int luax_intflag(lua_State *L, int table_index, const char *key, int defaultValu
|
||||
if (!lua_isnumber(L, -1))
|
||||
retval = defaultValue;
|
||||
else
|
||||
retval = lua_tonumber(L, -1);
|
||||
retval = (int) lua_tointeger(L, -1);
|
||||
|
||||
lua_pop(L, 1);
|
||||
return retval;
|
||||
|
||||
Reference in New Issue
Block a user