summaryrefslogtreecommitdiff
path: root/src/gui/palette.cpp
diff options
context:
space:
mode:
authorTametomo <irarice@gmail.com>2009-05-12 12:03:03 -0600
committerThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2010-02-14 20:54:02 +0100
commit062437bf34fca2fd7317de94a7c62aa6c963f1ae (patch)
tree4149c2a1e8997c6cea27c150ce39e07c502d6e83 /src/gui/palette.cpp
parent3eed2628ecb10a688f48db0c3cc7bac70dca22b7 (diff)
downloadmana-062437bf34fca2fd7317de94a7c62aa6c963f1ae.tar.gz
mana-062437bf34fca2fd7317de94a7c62aa6c963f1ae.tar.bz2
mana-062437bf34fca2fd7317de94a7c62aa6c963f1ae.tar.xz
mana-062437bf34fca2fd7317de94a7c62aa6c963f1ae.zip
Ensure that gradients update when the framerate is 200 or more.
Signed-off-by: Tametomo <irarice@gmail.com>
Diffstat (limited to 'src/gui/palette.cpp')
-rw-r--r--src/gui/palette.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/palette.cpp b/src/gui/palette.cpp
index 090d38a3..d1d6bebf 100644
--- a/src/gui/palette.cpp
+++ b/src/gui/palette.cpp
@@ -371,6 +371,7 @@ void Palette::advanceGradient()
}
}
- mRainbowTime = tick_time;
+ if (advance)
+ mRainbowTime = tick_time;
}
}