Are these casts unnecessary...??

This commit is contained in:
fickleheart 2020-03-18 22:40:11 -05:00
parent 647f73c8f2
commit 520e3c5dc3

View file

@ -1043,7 +1043,7 @@ static int lib_pSetObjectMomZ(lua_State *L)
static int lib_pPlayJingle(lua_State *L)
{
player_t *player = NULL;
jingletype_t jingletype = (jingletype_t)luaL_checkinteger(L, 2);
jingletype_t jingletype = luaL_checkinteger(L, 2);
//NOHUD
//INLEVEL
if (!lua_isnone(L, 1) && lua_isuserdata(L, 1))
@ -1065,7 +1065,7 @@ static int lib_pPlayJingleMusic(lua_State *L)
char musname[7], *p = musname;
UINT16 musflags = luaL_optinteger(L, 3, 0);
boolean looping = lua_opttrueboolean(L, 4);
jingletype_t jingletype = (jingletype_t)luaL_optinteger(L, 5, JT_OTHER);
jingletype_t jingletype = luaL_optinteger(L, 5, JT_OTHER);
//NOHUD
//INLEVEL
if (!lua_isnone(L, 1) && lua_isuserdata(L, 1))