From 78b3ff40201b9ed0a2dcb6635980de217d3de787 Mon Sep 17 00:00:00 2001 From: Abhinna Adhikari Date: Sun, 6 Dec 2020 17:39:29 -0500 Subject: [PATCH] Remove the counter within the main while loop --- js/canvas.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/js/canvas.js b/js/canvas.js index 8f46c54..e72c772 100644 --- a/js/canvas.js +++ b/js/canvas.js @@ -203,7 +203,6 @@ async function startSimulation() { entity.ctx = ctx; } - let counter = 0; while (!stop) { while (pause || stop) { @@ -251,10 +250,6 @@ async function startSimulation() { await animatePacket(packets, allEntities); // Prevents infinite loop. Take out after testing is complete - ++counter; - if (counter > 25) { - break; - } } }