Fix bug causing a wrong frame index
Fix bug causing a wrong frame index

Using this formula to calculate the image index
    offset = std::fmod(offset + speed / fps, length),
a length of 1 or speed = 0 and an offset > 0 would result in a wrong
index.

mall0c/GameLib,mall0c/TileEngine