diff options
-rw-r--r-- | coreengine/animation.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/coreengine/animation.c b/coreengine/animation.c index fb88ab6..863527c 100644 --- a/coreengine/animation.c +++ b/coreengine/animation.c @@ -277,6 +277,8 @@ void cAnimation::Shift(void) { int frametime = 1000 / FPS; int steps = (double)shifttime / (double)frametime; + if (steps < 2) + return; int stepXLinear = 0; int stepYLinear = 0; if (shiftstart.X() == shiftend.X()) { |