Jelajahi Sumber

Finish songless levels

Thomas Dy 6 tahun lalu
induk
melakukan
dbec961c41
1 mengubah file dengan 4 tambahan dan 0 penghapusan
  1. 4 0
      src/game/typing.ts

+ 4 - 0
src/game/typing.ts

@@ -235,6 +235,10 @@ namespace game {
       }
       if (this.context.track !== null) {
         this.setWaiting(true);
+      } else {
+        if (this.currentIndex >= this.lines.length) {
+          this.finish();
+        }
       }
     }