moving between rooms nearly works
[mudsync.git] / mudsync / game-master.scm
index 0daebc978a5bc7e8b705cad79c9fe0b171b22dd2..595a9032ee391b9dc1b29dc6e4b361750490ca92 100644 (file)
@@ -85,7 +85,7 @@
     "Take room exits syntax from the spec, turn it into exits"
     (match exit-spec
       ((name to-symbol desc)
-       (make <exit>
+       (make (@@ (mudsync room) <exit>)
          #:name name
          #:to-symbol to-symbol
          #:desc desc))))
         (let ((room
                (apply create-actor* gm room-class "room"
                       #:gm (actor-id gm)
-                      #:exits (map exit-from-spec room-exits)
+                      #:exits (map exit-from-spec (pk 'dem-exits room-exits))
                       room-args)))
           ;; register the room
           (hash-set! (gm-room-dir gm) room-symbol room)
   (format #t "DEBUG: From ~s: ~s\n" client-id input)
 
   (<- actor player 'handle-input
-      #:input input)
-
-  ;; TODO: Remove this shortly
-  (<- actor (gm-network-manager actor) 'send-to-client
-      #:client client-id
-      #:data "Thanks, we got it!\n"))
+      #:input input))
 
 (define-mhandler (gm-lookup-room actor message symbol)
   (define room-id