From b97f5d99140b3f79a127a8b240b803c7c6e12f0a Mon Sep 17 00:00:00 2001 From: Andrew Ardill Date: Wed, 10 Jul 2013 20:49:10 +1000 Subject: [PATCH] world.js: Introduce function to copy positions --- script/world.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/script/world.js b/script/world.js index 0e81465..2b2f621 100644 --- a/script/world.js +++ b/script/world.js @@ -821,5 +821,9 @@ var World = { setTitle: function() { document.title = 'A Barren World'; + }, + + copyPos: function(pos) { + return [pos[0], pos[1]]; } }; \ No newline at end of file