add play sound in function

This commit is contained in:
crabman77 2016-05-09 00:11:40 +02:00
parent 8f10e93bc3
commit b3a5eca1b5

View File

@ -7,6 +7,9 @@ if rawget(_G, "cmsg") then
end end
end end
else 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
end end