]> git.eli173.com Git - pong_br/commitdiff
whoops
authorElijah Cohen <eli@eli173.com>
Sat, 18 May 2019 01:49:58 +0000 (20:49 -0500)
committerElijah Cohen <eli@eli173.com>
Sat, 18 May 2019 01:49:58 +0000 (20:49 -0500)
server/game.js

index cce24a3be8242300135d1c388b304303b303ba8f..76dbd2f8bbb5a0d9ba7527a8785392a7fb24f44b 100644 (file)
@@ -17,7 +17,7 @@ Game.prototype.start = function(ms) {
     var tmpfn = function() {_this.getNextFrame()};
     var tmpfn2 = function() {_this.setInt(tmpfn, ms);};
     setTimeout(tmpfn2, 3000);
-    for(var player of players) {
+    for(var player of this.players) {
        player.send_data('starting');
     }
 }