disallow running another reticle after a dotter

This commit is contained in:
リキ萌え 2024-10-23 19:44:42 +02:00
parent 37ff06c704
commit 7c40505d7d

View file

@ -73,6 +73,12 @@ impl Trampoline {
let value = vm.run(system, draw_id, &[Value::Ref(dotter)])?; let value = vm.run(system, draw_id, &[Value::Ref(dotter)])?;
self.value = value; self.value = value;
// Prevent event handling weirdness on the frontend by disallowing continuing dotters
// with anything but scribbles.
if self.cont(vm) != Cont::Scribble {
return Err(vm.create_exception("a dotter must be continued with a scribble"));
}
Ok(()) Ok(())
} }
} }