ACCESS: Fix event pollig in death flashing loop

This commit is contained in:
Paul Gilbert 2014-12-08 23:13:42 -05:00
parent b20c755f46
commit c69480f6bf
2 changed files with 2 additions and 2 deletions

View file

@ -640,6 +640,7 @@ void AmazonEngine::dead(int deathId) {
_sound->playSound(0); _sound->playSound(0);
_screen->forceFadeOut(); _screen->forceFadeOut();
_events->pollEvents();
if (shouldQuit()) if (shouldQuit())
return; return;
} }

View file

@ -1475,8 +1475,7 @@ void River::initRiver() {
void River::resetPositions() { void River::resetPositions() {
riverSetPhysX(); riverSetPhysX();
int val = (_vm->_screen->_scrollCol + 1 - _oldScrollCol) * 16; int val = (_vm->_screen->_scrollCol + 1 - _oldScrollCol) * 16;
if (val > 256) { if (val < 0) {
val &= 0x7F;
val |= 0x80; val |= 0x80;
} }