Fix battle.fastForwardTo(0)

This is currently just treated as a reset. The important thing is, it
doesn't behave erratically as it did previously.
This commit is contained in:
Guangcong Luo
2015-11-06 06:16:08 -05:00
parent 1b5538896e
commit 50f475ca5b

View File

@@ -6024,9 +6024,11 @@ var Battle = (function () {
this.activityQueueActive = true;
if (paused) this.pause();
else this.paused = false;
this.fastForward = time;
this.elem.append('<div class="seeking"><strong>seeking...</strong></div>');
$.fx.off = true;
if (time) {
this.fastForward = time;
this.elem.append('<div class="seeking"><strong>seeking...</strong></div>');
$.fx.off = true;
}
this.elem.find(':animated').finish();
this.swapQueues();
this.nextActivity();