1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-16 09:55:22 +02:00

Sound refactor and improvements (#12764)

This commit is contained in:
DS
2023-06-16 20:15:21 +02:00
committed by GitHub
parent 8e1af25738
commit edcbfa31c9
52 changed files with 2802 additions and 1211 deletions

View File

@@ -503,7 +503,7 @@ int ModApiServer::l_sound_play(lua_State *L)
{
NO_MAP_LOCK_REQUIRED;
ServerPlayingSound params;
read_soundspec(L, 1, params.spec);
read_simplesoundspec(L, 1, params.spec);
read_server_sound_params(L, 2, params);
bool ephemeral = lua_gettop(L) > 2 && readParam<bool>(L, 3);
if (ephemeral) {