From ea6fe1e061d0874fe3b588e4aa931c5a880b42de Mon Sep 17 00:00:00 2001 From: walterhiggins Date: Sat, 29 Dec 2012 07:43:02 +0000 Subject: [PATCH] minor tidy up --- cottage.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cottage.js b/cottage.js index 7ab764c..077c151 100644 --- a/cottage.js +++ b/cottage.js @@ -6,7 +6,8 @@ // current script resides. // $SCRIPT is a special javascript variable whose value is the full name of the current script. // -load($SCRIPT_DIR + "/drone.js"); // assumes cottage.js and drone.js are in same directory +var scriptDir = $SCRIPT_DIR; +load(scriptDir + "/drone.js"); // assumes cottage.js and drone.js are in same directory // // usage: // [1] to build a cottage at the player's current location or the cross-hairs location... @@ -17,6 +18,7 @@ load($SCRIPT_DIR + "/drone.js"); // assumes cottage.js and drone.js are in same // // /js cottage(drone); // + function cottage(/* optional */ drone) { if (typeof drone == "undefined"){