Skip to content

Commit

Permalink
ACCESS: Fix offering items to boat captain
Browse files Browse the repository at this point in the history
  • Loading branch information
dreammaster committed Dec 13, 2015
1 parent 693834e commit 77feb41
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
1 change: 0 additions & 1 deletion engines/access/inventory.cpp
Expand Up @@ -183,7 +183,6 @@ int InventoryManager::newDisplayInv() {
_invModeFlag = false;
events.debounceLeft();
_vm->_timers.restoreTimers();
_vm->_startup = 1;

int result = 0;
if (!_invRefreshFlag) {
Expand Down
4 changes: 3 additions & 1 deletion engines/access/room.cpp
Expand Up @@ -172,12 +172,14 @@ void Room::doRoom() {
reloadFlag = false;
_vm->_startup = 8;
_function = FN_NONE;
bool fadeIn = true;

while (!_vm->shouldQuit()) {
_vm->_images.clear();
if (_vm->_startup != -1 && --_vm->_startup == 0) {
if (_vm->_startup == -1 && !fadeIn) {
_vm->_events->showCursor();
_vm->_screen->fadeIn();
fadeIn = true;
}

// Poll for events
Expand Down
4 changes: 3 additions & 1 deletion engines/access/screen.cpp
Expand Up @@ -89,8 +89,10 @@ void Screen::setPanel(int num) {
}

void Screen::updateScreen() {
if (_vm->_startup > 0)
if (_vm->_startup >= 0) {
--_vm->_startup;
return;
}

// Merge the dirty rects
mergeDirtyRects();
Expand Down

0 comments on commit 77feb41

Please sign in to comment.