Fix PathResolver sound

This commit is contained in:
Victor 2015-12-08 12:27:55 +02:00
parent 983709e80a
commit c1b2e79ca5

View File

@ -70,7 +70,7 @@ var PathResolver = new function () {
};
this.sound = function (name) {
var path = baseResDir + "sfx/";
if (path.startsWith("sfx_")) path += name.substring(4);
if (name.startsWith("sfx_")) path += name.substring(4);
else path += name;
path += ".ogg";
return path;