mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-02-01 06:00:45 +00:00
Lua: Make S_GetMusicPosition and S_SetMusicPosition return nil when non-local player is passed
This commit is contained in:
parent
9a5800d2bb
commit
3fb4559480
1 changed files with 2 additions and 2 deletions
|
@ -2269,7 +2269,7 @@ static int lib_sSetMusicPosition(lua_State *L)
|
|||
if (!player || P_IsLocalPlayer(player))
|
||||
lua_pushboolean(L, S_SetMusicPosition(position));
|
||||
else
|
||||
lua_pushboolean(L, false);
|
||||
lua_pushnil(L);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
@ -2316,7 +2316,7 @@ static int lib_sResumeMusic(lua_State *L)
|
|||
if (!player || P_IsLocalPlayer(player))
|
||||
S_ResumeAudio();
|
||||
else
|
||||
lua_pushboolean(L, false);
|
||||
lua_pushnil(L);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue