aboutsummaryrefslogtreecommitdiff
path: root/engines/access
diff options
context:
space:
mode:
authorPaul Gilbert2014-08-13 21:07:27 -0400
committerPaul Gilbert2014-08-13 21:07:27 -0400
commited645e435a641cc3be95bfe946d2c08d2ab3836b (patch)
treed86aa291f47bab81122af2d2b51eb76dbb40e8b3 /engines/access
parent146f6b5df40d2800432866389f549838921203d2 (diff)
downloadscummvm-rg350-ed645e435a641cc3be95bfe946d2c08d2ab3836b.tar.gz
scummvm-rg350-ed645e435a641cc3be95bfe946d2c08d2ab3836b.tar.bz2
scummvm-rg350-ed645e435a641cc3be95bfe946d2c08d2ab3836b.zip
ACCESS: Fix clearing pending images list each frame
Diffstat (limited to 'engines/access')
-rw-r--r--engines/access/access.cpp2
-rw-r--r--engines/access/access.h2
-rw-r--r--engines/access/room.cpp6
3 files changed, 2 insertions, 8 deletions
diff --git a/engines/access/access.cpp b/engines/access/access.cpp
index 9b10e4f8c3..3a773a94c1 100644
--- a/engines/access/access.cpp
+++ b/engines/access/access.cpp
@@ -60,8 +60,6 @@ AccessEngine::AccessEngine(OSystem *syst, const AccessGameDescription *gameDesc)
_converseMode = 0;
_startAboutBox = 0;
_startTravelBox = 0;
- _numImages = 0;
- _nextImage = 0;
_numAnimTimers = 0;
_startup = 0;
_currentCharFlag = false;
diff --git a/engines/access/access.h b/engines/access/access.h
index 770bd030ff..08b5ae3935 100644
--- a/engines/access/access.h
+++ b/engines/access/access.h
@@ -142,8 +142,6 @@ public:
int _selectCommand;
bool _normalMouse;
int _mouseMode;
- int _numImages;
- int _nextImage;
int _currentManOld;
byte *_man;
diff --git a/engines/access/room.cpp b/engines/access/room.cpp
index cd39109e63..3e9e9e65aa 100644
--- a/engines/access/room.cpp
+++ b/engines/access/room.cpp
@@ -57,10 +57,9 @@ void Room::doRoom() {
while (!_vm->shouldQuit()) {
if (!reloadFlag) {
- _vm->_numImages = 0;
+ _vm->_images.clear();
_vm->_newRects.clear();
_vm->_oldRects.clear();
- _vm->_nextImage = 0;
_vm->_numAnimTimers = 0;
reloadRoom();
@@ -71,7 +70,7 @@ void Room::doRoom() {
_function = 0;
while (!_vm->shouldQuit()) {
- _vm->_numImages = 0;
+ _vm->_images.clear();
if (_vm->_startup != -1 && --_vm->_startup != 0) {
_vm->_events->showCursor();
_vm->_screen->fadeIn();
@@ -84,7 +83,6 @@ void Room::doRoom() {
// Handle any events
_vm->_events->pollEvents();
- _vm->_nextImage = 0;
_vm->_player->walk();
_vm->_sound->midiRepeat();
_vm->_screen->checkScroll();