Commit c0a482d4 authored by Arthur Bit-Monnot's avatar Arthur Bit-Monnot

Fix: enforce right duration of actions.

parent 3a80a2b4
......@@ -93,7 +93,7 @@ abstract class AnmlParser(val initialContext: Ctx) {
ctx
.findTimepoint("start")
.flatMap(st => ctx.findTimepoint("end").map(ed => (st, ed))) match {
case Some((st, ed)) => PassWith(new Delay(st, ed + 1))
case Some((st, ed)) => PassWith(new Delay(st, ed))
case None => sys.error("No start/end timepoint")
})
.opaque("duration") |
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment