diff options
| author | sowgro <tpoke.ferrari@gmail.com> | 2023-06-08 23:52:32 -0400 | 
|---|---|---|
| committer | sowgro <tpoke.ferrari@gmail.com> | 2023-06-08 23:52:32 -0400 | 
| commit | 7a7afb82b1ca8878ae066f9b811ad4d8910d654a (patch) | |
| tree | 6f12a01c11045ef0b7b63fc253a767e396281e88 /src/main | |
| parent | af36a57384060bd8695b94d3e20d8cd1b3553fe8 (diff) | |
| download | NPEhero-7a7afb82b1ca8878ae066f9b811ad4d8910d654a.tar.gz NPEhero-7a7afb82b1ca8878ae066f9b811ad4d8910d654a.tar.bz2 NPEhero-7a7afb82b1ca8878ae066f9b811ad4d8910d654a.zip  | |
small improvement to level validation
Diffstat (limited to '')
| -rw-r--r-- | src/main/Difficulty.java | 12 | 
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;      }  | 
