From 3cb8aacb16fa8ba4c681d3de5078903a002ec3ee Mon Sep 17 00:00:00 2001 From: urkerab Date: Sat, 29 Oct 2016 06:03:19 +0100 Subject: [PATCH] Switching battle tabs should honour the 'noanim' pref (#788) --- js/client-battle.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/js/client-battle.js b/js/client-battle.js index 970a89081..68343dd86 100644 --- a/js/client-battle.js +++ b/js/client-battle.js @@ -92,7 +92,10 @@ }, focus: function () { this.tooltips.hideTooltip(); - if (this.battle.playbackState === 3) this.battle.play(); + if (this.battle.playbackState === 3) { + this.battle.play(); + if (Tools.prefs('noanim')) this.battle.fastForwardTo(-1); + } ConsoleRoom.prototype.focus.call(this); }, blur: function () {