using assemble. fixes #7

This commit is contained in:
logsol 2012-07-15 21:58:24 +02:00
parent 84afcdfdd0
commit d523b88e66

View file

@ -67,9 +67,7 @@ define(["Protocol/Helper", "Chuck/ClientGame"], function(ProtocolHelper, ClientG
} }
Networker.prototype.sendGameCommand = function(command, options) { Networker.prototype.sendGameCommand = function(command, options) {
var message = {}; this.sendCommand('gameCommand', ProtocolHelper.assemble(command, options));
message[command] = options || true;
this.sendCommand('gameCommand', message);
} }
Networker.prototype.onUserLeft = function(userId) { Networker.prototype.onUserLeft = function(userId) {