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) {