Moving shared JS

This commit is contained in:
Jeremiah Billmann
2013-05-22 21:26:51 -04:00
parent 0cd3f08b3f
commit c009deb540
2 changed files with 1 additions and 1 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ function GarageServerGame (socketio, options) {
GarageServerGame.prototype.updatePlayers = function (options) {
var currentTime = new Date().getTime();
for(var i = 0; i < this.players.length; i ++) {
this.io.emit('playerUpdate', { id: this.players[i].client.id, state: this.players[i].state, seq: this.players[i].sequence, timestamp: currentTime });
this.io.emit('update', { id: this.players[i].client.id, state: this.players[i].state, seq: this.players[i].sequence, timestamp: currentTime });
}
};