We can finally move around!
[mudsync.git] / mudsync / gameobj.scm
index 351abe7c22a9094f0666938b73620f7669406ca9..37f8bfefa8d07ebb85be81a9e17705089703f2b8 100644 (file)
   (set! (gameobj-loc actor) loc)
   ;; Change registation of where we currently are
   (if loc
-      (<- actor loc 'add-occupant! #:who (actor-id actor)))
+      (<-wait actor loc 'add-occupant! #:who (actor-id actor)))
   (if old-loc
-      (<- actor old-loc 'remove-occupant! #:who (actor-id actor))))
+      (<-wait actor old-loc 'remove-occupant! #:who (actor-id actor))))
 
 (define gameobj-get-name (simple-slot-getter 'name))
 (define gameobj-get-desc (simple-slot-getter 'desc))