From f9d3a537c0697e88a5a76a16dc9fc38fb692203b Mon Sep 17 00:00:00 2001 From: bitsearch Date: Thu, 19 Feb 2026 14:46:25 +0100 Subject: [PATCH] bug fixed --- .DS_Store | Bin 0 -> 6148 bytes Transcendence/srcs/frontend/src/tetris.css | 4 ++-- Transcendence/srcs/frontend/src/tetris.js | 7 ++++--- 3 files changed, 6 insertions(+), 5 deletions(-) create mode 100644 .DS_Store diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..9940f4a12914c6c1d7b4c4361aa0caeed0fab09f GIT binary patch literal 6148 zcmeHKyJ`bL3>+mc3?bms<^DqcU@^`YBp;C2m(JJ_lm4oFS3WJHM-g)bT-c2nfp&Ja z8XY&q=>))5U&9ly05GRJ;@g+0`MvwZ?kZwLI%^!U#Rv8nxSnUueZ(t1@lM`f{@!a1 z$L(%&IP5%4CIzH`6p#W^Knh$yfoiJrhYQqF2`L~2Zc73GJ~X;xFB}u&)4?T10OE|{ zFz#cPAT|#Wd*PVK2+fj8Osdt0VM%AaRbDR~6O#_B;lt|5RuhWF(^$=W zRDt_EF1-Ig)Bl= this.timeToDown) { + while (this.isRunning && this.accumulator >= this.timeToDown) { this._tick(); this.accumulator -= this.timeToDown; if (this.accumulator > this.timeToDown * 3) { @@ -268,9 +269,9 @@ class Tetris { } _makeHarder() { - if (this.count >= this.hardening){ + if (this.count >= this.hardening) { this.count = 0; - this.timeToDown -= this.decrementTTD; + this.timeToDown = Math.max(100, this.timeToDown - this.decrementTTD); } }