Remove I_MIDIPlaying from Lua

This commit is contained in:
mazmazz 2018-08-18 17:46:14 -04:00
parent 57c8cf25af
commit 8b6c24c6fa

View file

@ -2358,40 +2358,6 @@ static int lib_sStopMusic(lua_State *L)
return 1; return 1;
} }
static int lib_sDigitalPlaying(lua_State *L)
{
player_t *player = NULL;
NOHUD
if (!lua_isnone(L, 1) && lua_isuserdata(L, 1))
{
player = *((player_t **)luaL_checkudata(L, 1, META_PLAYER));
if (!player)
return LUA_ErrInvalid(L, "player_t");
}
if (!player || P_IsLocalPlayer(player))
lua_pushboolean(L, !S_MIDIPlaying() && S_MusicPlaying());
else
lua_pushnil(L);
return 1;
}
static int lib_sMidiPlaying(lua_State *L)
{
player_t *player = NULL;
NOHUD
if (!lua_isnone(L, 1) && lua_isuserdata(L, 1))
{
player = *((player_t **)luaL_checkudata(L, 1, META_PLAYER));
if (!player)
return LUA_ErrInvalid(L, "player_t");
}
if (!player || P_IsLocalPlayer(player))
lua_pushboolean(L, S_MIDIPlaying());
else
lua_pushnil(L);
return 1;
}
static int lib_sMusicPlaying(lua_State *L) static int lib_sMusicPlaying(lua_State *L)
{ {
player_t *player = NULL; player_t *player = NULL;
@ -2880,8 +2846,6 @@ static luaL_Reg lib[] = {
{"S_PauseMusic",lib_sPauseMusic}, {"S_PauseMusic",lib_sPauseMusic},
{"S_ResumeMusic",lib_sResumeMusic}, {"S_ResumeMusic",lib_sResumeMusic},
{"S_StopMusic",lib_sStopMusic}, {"S_StopMusic",lib_sStopMusic},
{"S_DigitalPlaying",lib_sDigitalPlaying},
{"S_MidiPlaying",lib_sMidiPlaying},
{"S_MusicPlaying",lib_sMusicPlaying}, {"S_MusicPlaying",lib_sMusicPlaying},
{"S_MusicPaused",lib_sMusicPaused}, {"S_MusicPaused",lib_sMusicPaused},
{"S_MusicType",lib_sMusicType}, {"S_MusicType",lib_sMusicType},