Parcourir la source

bug #1915: Fixed music not playing

tags/v0.11.0
Shaun il y a 2 ans
Parent
révision
67f5b140db
2 fichiers modifiés avec 3 ajouts et 3 suppressions
  1. +1
    -1
      src/client/js/objects/objects.js
  2. +2
    -2
      src/server/clientComponents/sound.js

+ 1
- 1
src/client/js/objects/objects.js Voir le fichier

@@ -167,7 +167,7 @@ define([
events.emit('onGetPlayer', obj);
window.player = obj;

sound.unload(obj.zoneName);
sound.unload(obj.zoneId);

renderer.setPosition({
x: (obj.x - (renderer.width / (scale * 2))) * scale,


+ 2
- 2
src/server/clientComponents/sound.js Voir le fichier

@@ -14,11 +14,11 @@ define([
init: function () {
const {
sound, volume, music, defaultMusic, loop = true,
obj: { zoneName, x, y, width, height, area }
obj: { zoneId, x, y, width, height, area }
} = this;

const config = {
scope: zoneName,
scope: zoneId,
file: sound,
volume,
x,


Chargement…
Annuler
Enregistrer