Commits

spirit  committed 040f483

sticky_blank: no "to next sub" error if fixing it would cause an overlap.

  • Participants
  • Parent commits f58b0ee

Comments (0)

Files changed (1)

File jsplugin/sticky_blank.js

         var interval = beforeNextSub - CurrentSub.Stop;
 
         if (interval > this.ParamTolerance.Value) {
+            var stop = Common.getNonOverlappedStop(beforeNextSub, NextSub, nextScene);
+            if (stop < beforeNextSub) {
+                return "";
+            }
             return Common.formatMessage(this.StopMessageSub,
                 {value: interval,
                 range: this.ParamStopRange.Value,