Commit 922467f1 authored by niklas.baumgarten's avatar niklas.baumgarten
Browse files

bug fixes

parent c2c28714
......@@ -4,6 +4,7 @@
void Level::Update(int level) {
fine = level;
coarse = level - 1;
if (coarse < 0) coarse = 0;
pLevel = coarse;
}
......
......@@ -27,7 +27,7 @@ struct Level {
void Update(int level);
int ActualLevel(bool getCoarse) const {
if (getCoarse) return fine;
if (!getCoarse) return fine;
else return coarse;
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment