diff options
-rw-r--r-- | dgedit/player.cc | 2 |
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; } |