diff --git a/static/js/render.js b/static/js/render.js index 96bfcc2..0b41bdd 100644 --- a/static/js/render.js +++ b/static/js/render.js @@ -96,11 +96,13 @@ function drawGame() { // --- DEBUG RAHMEN (Server Hitboxen) --- // GrĂ¼n im Spiel, Rot bei Tod - ctx.strokeStyle = isGameOver ? "red" : "lime"; - ctx.lineWidth = 2; - serverObstacles.forEach(srvObs => { - ctx.strokeRect(srvObs.x, srvObs.y, srvObs.w, srvObs.h); - }); + if (DEBUG_SYNC == true) { + ctx.strokeStyle = isGameOver ? "red" : "lime"; + ctx.lineWidth = 2; + serverObstacles.forEach(srvObs => { + ctx.strokeRect(srvObs.x, srvObs.y, srvObs.w, srvObs.h); + }); + } // --- SPIELER ---