mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-26 03:51:50 +00:00
Lua: Make S_GetMusicPosition and S_SetMusicPosition return nil when non-local player is passed
This commit is contained in:
parent
2c4af751d2
commit
5b504509c0
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…
Add table
Reference in a new issue