summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2014-04-20 20:58:00 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2014-04-20 20:58:00 +0200
commit722eb3fd725cba195f0dc98082b62383cd2ca243 (patch)
tree8815a3d8f733cc41dd1d8dc90121e2b239b6cdc4
parent487f6e4d82e39325088f638b0b967c0cbee40709 (diff)
Fix fade-in.
-rw-r--r--dgedit/player.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/dgedit/player.cc b/dgedit/player.cc
index 745052e..64b3067 100644
--- a/dgedit/player.cc
+++ b/dgedit/player.cc
@@ -90,7 +90,7 @@ void Player::run()
double fade = 1;
if(p < (sel.from + sel.fadein)) {
// Apply linear fade-in
- double fp = p - sel.from;
+ double fp = (double)((int)p - (int)sel.from);
fade = fp / (double)sel.fadeout;
}