diff --git a/.gitignore b/.gitignore index 9157dab..9eb9bf3 100644 --- a/.gitignore +++ b/.gitignore @@ -20,3 +20,4 @@ cmake-build-*/ .ctagsd *.rej .codelite/*.tags +*_build diff --git a/backends/playback/zsm/zsm_backend.cpp b/backends/playback/zsm/zsm_backend.cpp index 67d7938..1a0876a 100644 --- a/backends/playback/zsm/zsm_backend.cpp +++ b/backends/playback/zsm/zsm_backend.cpp @@ -60,13 +60,8 @@ void ZsmBackend::load(const char *filename) { ZsmCommand cmd = get_command(); size_t cur_pos = file->get_pos(); if (cur_pos >= this->loop_point && this->loop_pos < 0) { - if (cur_pos > this->loop_point) { - this->loop_point = prev_pos; - loop_pos = prev_time; - } else { - loop_pos = time; - this->loop_point = cur_pos; - } + loop_pos = time; + this->loop_point = cur_pos; } if (cmd.id == ZsmEOF) { break;