Browse Source

Merge branch '1838-fix-rezone-camera-speed' into 'master'

fix #1838: Fix camera speed when rezoning while mounted

Closes #1838

See merge request Isleward/isleward!605
tags/v0.12.0
Big Bad Waffle 1 year ago
parent
commit
ed9c6872ce
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      src/client/js/rendering/renderer.js

+ 6
- 0
src/client/js/rendering/renderer.js View File

@@ -326,6 +326,12 @@ define([
c.zoneId = this.zoneId;
events.emit('onGetObject', c);
});

//Normally, the mounts mod queues this event when unmounting.
// If we rezone, our effects are destroyed, so the event is queued,
// but flushForTarget clears the event right after and the event is never received.
// We emit it again here to make sure the speed is reset after entering the new zone.
events.emit('onMoveSpeedChange', 0);
},

setPosition: function (pos, instant) {


Loading…
Cancel
Save