X-Git-Url: https://disinclined.org/git/?a=blobdiff_plain;f=mud.js;h=b8e3074ca2dbac81c2b18d5376e7ccf08ff909b5;hb=19bbaf5a8dee8338c686751ddfe9abb9a12148c3;hp=95373f3f656562a239c2e28656cddec55a25b2c2;hpb=0ce89d3598c0aeabb116054fa15346d438dec23b;p=mudd.git diff --git a/mud.js b/mud.js index 95373f3..b8e3074 100644 --- a/mud.js +++ b/mud.js @@ -158,7 +158,7 @@ $(document).ready(function(){ }); }, move : function(direction) { - this.player.move(direction); + self.player.move(direction); }, } this.writeToLog = function(action, style, msg) { @@ -226,8 +226,6 @@ $(document).ready(function(){ $.getJSON(endpoint, { 'cmd' : 'start' }, function(json) { self.build(json) - }).fail(function(jqxhr, textStatus, error) { - console.log(jqxhr, jqxhr.responseText, textStatus, error); }); this.populate = function(players) {