From 114502685ecbe9484aee3907ee8c28741bd5b27b Mon Sep 17 00:00:00 2001 From: Tom Smeding Date: Sat, 23 Jun 2018 22:00:55 +0200 Subject: Fix infinite ballouts Didn't notice this on my computer since localhost was too fast. --- game.js | 1 + 1 file changed, 1 insertion(+) diff --git a/game.js b/game.js index 77d4151..bd2b288 100644 --- a/game.js +++ b/game.js @@ -170,6 +170,7 @@ function startPhysicsLoop() { } if (ballX < -ballRadius) { socket.emit("ballout"); + stopPhysicsLoop(); } }, interval * 1000); } -- cgit v1.2.3-54-g00ecf