fix cassting, make one tic duration default, but can still pass ms to it

This commit is contained in:
Alug committed 2024-08-03 17:42:39 +02:00
1 parent 2afa18bbdd
commit b0880607d4
1 file changed
+3 -3
+3 -3
View File
@@ -3031,9 +3031,9 @@ static int lib_gPlayerDeviceRumble(lua_State *L)
{
INT32 player = -1;
player_t *plr = *((player_t **)luaL_checkudata(L, 1, META_PLAYER)); // retrieve player
UINT16 low_strength = (INT32)luaL_checkinteger(L, 2); // low frequency rumble motor strenght
UINT16 high_strength = (INT32)luaL_checkinteger(L, 3); // high frequency rumble motor strenght
UINT32 duration = (INT32)luaL_checkinteger(L, 4); // duration of rumble in ms
UINT16 low_strength = (UINT16)luaL_checkinteger(L, 2); // low frequency rumble motor strenght
UINT16 high_strength = (UINT16)luaL_checkinteger(L, 3); // high frequency rumble motor strenght
UINT32 duration = (UINT32)luaL_optinteger(L, 4, 28); // duration of rumble in ms
for (int i = 0; i < MAXSPLITSCREENPLAYERS; ++i)
{