Animation: fix bug in calculation of frame durations

This commit is contained in:
Jason Long 2015-01-17 15:24:53 -08:00
parent 1824fc2e64
commit 71161d650e

View file

@ -55,7 +55,7 @@ public class Animation extends TileImage
public void addFrame(TileImage img, int duration)
{
totalDuration += duration;
Frame f = new Frame(img, totalDuration);
Frame f = new Frame(img, duration);
frames.add(f);
}