Fix bug in skip to next poll function

Don't get stuck in some weird limbo pause mode after advancing to next
poll.
This commit is contained in:
Ilari Liusvaara 2012-01-04 15:46:01 +02:00
parent c3fc676519
commit d8a7a554e1

View file

@ -135,7 +135,9 @@ controls_t movie_logic::update_controls(bool subframe) throw(std::bad_alloc, std
} else if(amode == ADVANCE_FRAME) {
;
} else {
window::paused(amode == ADVANCE_SKIPLAG || amode == ADVANCE_PAUSE);
if(amode == ADVANCE_SKIPLAG)
amode = ADVANCE_PAUSE;
window::paused(amode == ADVANCE_PAUSE);
cancel_advance = false;
}
if(amode == ADVANCE_SKIPLAG)