mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-20 16:31:03 +00:00
Make S_StopMusic return nil for invalid player, true otherwise
This commit is contained in:
parent
8d0044c5f1
commit
9dbc807528
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue