aboutsummaryrefslogtreecommitdiff
path: root/src/main/Difficulty.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/Difficulty.java')
-rw-r--r--src/main/Difficulty.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/main/Difficulty.java b/src/main/Difficulty.java
index 3dba47b..d8587f1 100644
--- a/src/main/Difficulty.java
+++ b/src/main/Difficulty.java
@@ -72,6 +72,18 @@ public class Difficulty implements Comparable<Difficulty>
isValid1 = false;
}
+ if (bpm == 0.0)
+ {
+ System.err.println(thisDir+" is missing a bpm");
+ isValid1 = false;
+ }
+
+ if (numBeats == 0)
+ {
+ System.err.println(thisDir+" is missing the number of beats");
+ isValid1 = false;
+ }
+
isValid = isValid1;
}