- on "playmusic" remove volume parameter, add loop parameter

This commit is contained in:
2023-01-13 13:19:14 +01:00
parent bcb58d49a0
commit 5075c65f7e
3 changed files with 5 additions and 6 deletions

View File

@@ -651,8 +651,8 @@ extern "C" {
static int cpp_playmusic(lua_State *L) {
const char* str = luaL_checkstring(L, 1);
const int volume = luaL_optinteger(L, 2, -1);
playmusic(str, volume);
const int loop = luaL_optinteger(L, 2, -1);
playmusic(str, loop);
return 0;
}