X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=iflib.lisp;fp=iflib.lisp;h=39f4d507fba3e2b4064417124cc01a289d74af05;hb=3c1330430d88e67fce6b6c69a261beb6f93868ea;hp=1a1059d427b4ecf4b0ecea96e5de3da7251f9e6d;hpb=d6621d9c4fedfc95669395bc7c40e43c70e62069;p=lifp.git diff --git a/iflib.lisp b/iflib.lisp index 1a1059d..39f4d50 100644 --- a/iflib.lisp +++ b/iflib.lisp @@ -644,9 +644,9 @@ (load file) (print-message "Module is successfully loaded.")) -(defun test-seq (&optional (rm nil)) +(defun test-seq (&optional (rm *repl-mode*)) "Test sequence emulating interactive fiction interpreter" - (load-cfg "iflib.cfg") + ;;(load-cfg "iflib.cfg") (setf *score* 0 *turns* 0 *gamestate* 0) @@ -663,8 +663,9 @@ (defun interactive-start () "Function intended to be used by user" (load-cfg "iflib.cfg") - (run-console #'seq #'lib :interactive t) - (when *hard-quit* (quit-lisp))) + (unless *repl-mode* + (run-console #'seq #'lib :interactive t) + (when *hard-quit* (quit-lisp)))) ;;SECTION 9: Other stuff