From 945d8fdf9ca977006643a1d13f23ad53abda0c37 Mon Sep 17 00:00:00 2001 From: "p.kosyh" Date: Sat, 17 Jul 2010 14:11:34 +0000 Subject: [PATCH] out optional arg --- stead/goto.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/stead/goto.lua b/stead/goto.lua index 8bca1fb..7a02173 100644 --- a/stead/goto.lua +++ b/stead/goto.lua @@ -148,7 +148,10 @@ function goin(what) end stead.goin = goin -function out() +function out(what) + if isRoom(ref(what)) then + return me():goto(what, true, true, false, true); + end return me():goto(from(), true, true, false, true); end stead.out = out