Make S_StopMusic return nil for invalid player, true otherwise

This commit is contained in:
mazmazz 2018-03-02 13:56:53 -05:00
parent 8d0044c5f1
commit 9dbc807528

View file

@ -2331,7 +2331,12 @@ static int lib_sStopMusic(lua_State *L)
return LUA_ErrInvalid(L, "player_t");
}
if (!player || P_IsLocalPlayer(player))
{
S_StopMusic();
lua_pushboolean(L, true)
}
else
lua_pushnil(L);
return 0;
}