fix cassting, make one tic duration default, but can still pass ms to it
This commit is contained in:
1 parent
2afa18bbdd
commit
b0880607d4
1 file changed
+3
-3
+3
-3
@@ -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)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user