add play sound in function

This commit is contained in:
crabman77 2016-05-09 00:11:40 +02:00
parent 8f10e93bc3
commit b3a5eca1b5
1 changed files with 4 additions and 1 deletions

View File

@ -7,6 +7,9 @@ if rawget(_G, "cmsg") then
end
end
else
function quests.show_message(...)
function quests.show_message(t, playername, text)
if (quests.hud[playername].central_message_enabled) then
minetest.sound_play("quests_" .. t, {to_player = playername})
end
end
end