wait to inject each object before we inject the next one
authorChristopher Allan Webber <cwebber@dustycloud.org>
Wed, 1 Feb 2017 21:32:20 +0000 (15:32 -0600)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Wed, 1 Feb 2017 21:32:20 +0000 (15:32 -0600)
mudsync/run-game.scm

index 0fed48d0c51f3a43182aff45d953a368d0ad09a7..c9d1f423a31262e6004480c7ea5c91c1480d289d 100644 (file)
@@ -69,9 +69,9 @@
   (while (not (q-empty? %inject-queue))
     (match (deq! %inject-queue)
       ((gameobj-spec . special-symbol)
-       (<- (.gm injector) 'inject-special!
-           #:special-symbol special-symbol
-           #:gameobj-spec gameobj-spec)))))
+       (<-wait (.gm injector) 'inject-special!
+               #:special-symbol special-symbol
+               #:gameobj-spec gameobj-spec)))))
 
 \f
 ;;; Game running stuff