File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 628628;; (DefinedSchema "look at person") to make it look.
629629(DefineLink
630630 (DefinedPredicate "interact with new person")
631- (True (Put (DefinedPredicate "Set interaction target")
632- ; If more than one new arrival, pick one randomly.
633- (RandomChoice (DefinedSchema "New arrivals"))))
631+ ; XXX Double-check that the "New arrivals" list is non-empty;
632+ ; some OpenPsi bug sometimes sends us here, and the RandomChoice
633+ ; crashes if the list is empty.
634+ (SequentialAnd
635+ (DefinedPredicateNode "Did someone arrive?")
636+ (True (Put (DefinedPredicate "Set interaction target")
637+ ; If more than one new arrival, pick one randomly.
638+ (RandomChoice (DefinedSchema "New arrivals")))))
634639)
635640
636641;; Set eye-contact face to the requested face.
You can’t perform that action at this time.
0 commit comments