From d523b88e66ba692257109c86e1c10495ca409c0b Mon Sep 17 00:00:00 2001 From: logsol Date: Sun, 15 Jul 2012 21:58:24 +0200 Subject: [PATCH] using assemble. fixes #7 --- lib/Client/Networker.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/Client/Networker.js b/lib/Client/Networker.js index efb3270..c09c49b 100644 --- a/lib/Client/Networker.js +++ b/lib/Client/Networker.js @@ -67,9 +67,7 @@ define(["Protocol/Helper", "Chuck/ClientGame"], function(ProtocolHelper, ClientG } Networker.prototype.sendGameCommand = function(command, options) { - var message = {}; - message[command] = options || true; - this.sendCommand('gameCommand', message); + this.sendCommand('gameCommand', ProtocolHelper.assemble(command, options)); } Networker.prototype.onUserLeft = function(userId) {