typo & rm console.logs
authorDylan Lloyd <dylan@dylansserver.com>
Fri, 4 Oct 2013 13:04:00 +0000 (13:04 +0000)
committerDylan Lloyd <dylan@dylansserver.com>
Fri, 4 Oct 2013 13:04:00 +0000 (13:04 +0000)
mud.js
mud.php

diff --git a/mud.js b/mud.js
index 95373f3..b8e3074 100644 (file)
--- 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) {
diff --git a/mud.php b/mud.php
index f3db120..0cf35bc 100644 (file)
--- a/mud.php
+++ b/mud.php
@@ -253,7 +253,7 @@ class mud extends model {
                 $this->update('DELETE FROM players');
                 break;
             default:
-                $this->error(400, 'Unknown command');
+                $this->error(400, 'unknown command');
         }
     }