Make pause-on-end actually controllable

Pause-on-end was buggy: It always was on, regardless of pause-on-end
value. Fix it so pause only happens if pause-on-end is true.
This commit is contained in:
Ilari Liusvaara 2011-12-16 03:26:14 +02:00
parent f3e3c4f6f7
commit 20b796f7bf

View file

@ -156,7 +156,7 @@ controls_t movie_logic::update_controls(bool subframe) throw(std::bad_alloc, std
cancel_advance = false;
}
window::paused(amode == ADVANCE_PAUSE);
} else if(amode == ADVANCE_AUTO && movb.get_movie().readonly_mode()) {
} else if(amode == ADVANCE_AUTO && movb.get_movie().readonly_mode() && pause_on_end) {
if(movb.get_movie().get_current_frame() == movb.get_movie().get_frame_count() + 1) {
amode = ADVANCE_PAUSE;
window::paused(true);