aboutsummaryrefslogtreecommitdiff
path: root/engines/voyeur/files_threads.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2013-12-29 09:58:43 +1100
committerPaul Gilbert2013-12-29 09:58:43 +1100
commit10af04da6a9a01d2f1ff5febed86c4c5ca6cfb8d (patch)
tree4f8dba56e6f8121d0fd826b54cb6df7018ffe064 /engines/voyeur/files_threads.cpp
parent1256fb6b666a36fbbd8f3223d2c776bca9a3ca83 (diff)
downloadscummvm-rg350-10af04da6a9a01d2f1ff5febed86c4c5ca6cfb8d.tar.gz
scummvm-rg350-10af04da6a9a01d2f1ff5febed86c4c5ca6cfb8d.tar.bz2
scummvm-rg350-10af04da6a9a01d2f1ff5febed86c4c5ca6cfb8d.zip
VOYEUR: Mouse flags cleanup and in progress work on doGossip
Diffstat (limited to 'engines/voyeur/files_threads.cpp')
-rw-r--r--engines/voyeur/files_threads.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/engines/voyeur/files_threads.cpp b/engines/voyeur/files_threads.cpp
index 6b2b26860d..1d04ddc44e 100644
--- a/engines/voyeur/files_threads.cpp
+++ b/engines/voyeur/files_threads.cpp
@@ -406,7 +406,7 @@ void ThreadResource::parsePlayCommands() {
_vm->_voy._field478 |= 16;
_vm->_eventsManager.startCursorBlink();
- while (!_vm->shouldQuit() && !_vm->_voy._mouseClicked &&
+ while (!_vm->shouldQuit() && !_vm->_eventsManager._mouseClicked &&
_vm->_soundManager.getVOCStatus())
_vm->_eventsManager.delayClick(1);
@@ -460,7 +460,7 @@ void ThreadResource::parsePlayCommands() {
}
_vm->_eventsManager._videoDead = -1;
- if (_field42 == 2 && _vm->_voy._mouseClicked == 0) {
+ if (_field42 == 2 && _vm->_eventsManager._mouseClicked == 0) {
_vm->_voy._field470 = 132;
parseIndex = 999;
} else {
@@ -515,7 +515,7 @@ void ThreadResource::parsePlayCommands() {
Common::String file = Common::String::format("news%d.voc", i + 1);
_vm->_soundManager.startVOCPlay(file);
- while (!_vm->shouldQuit() && !_vm->_voy._mouseClicked &&
+ while (!_vm->shouldQuit() && !_vm->_eventsManager._mouseClicked &&
_vm->_soundManager.getVOCStatus()) {
_vm->_eventsManager.delayClick(1);
_vm->_eventsManager.getMouseInfo();
@@ -526,7 +526,7 @@ void ThreadResource::parsePlayCommands() {
if (i == (count - 1))
_vm->_eventsManager.delay(480);
- if (_vm->shouldQuit() || _vm->_voy._mouseClicked)
+ if (_vm->shouldQuit() || _vm->_eventsManager._mouseClicked)
break;
}
@@ -706,7 +706,7 @@ void ThreadResource::parsePlayCommands() {
Common::String fname = Common::String::format("news%d.voc", idx);
- while (!_vm->shouldQuit() && !_vm->_voy._mouseClicked &&
+ while (!_vm->shouldQuit() && !_vm->_eventsManager._mouseClicked &&
_vm->_soundManager.getVOCStatus())
_vm->_eventsManager.delay(1);
@@ -714,7 +714,7 @@ void ThreadResource::parsePlayCommands() {
if (idx == 3)
_vm->_eventsManager.delay(3);
- if (_vm->shouldQuit() || _vm->_voy._mouseClicked)
+ if (_vm->shouldQuit() || _vm->_eventsManager._mouseClicked)
break;
}
@@ -1107,7 +1107,7 @@ int ThreadResource::doApt() {
_vm->flipPageAndWait();
- } while (!_vm->shouldQuit() && (!_vm->_voy._leftClick || hotspotId == -1));
+ } while (!_vm->shouldQuit() && (!_vm->_eventsManager._leftClick || hotspotId == -1));
pt = _vm->_eventsManager.getMousePos();
_doAptPosX = pt.x;
@@ -1231,10 +1231,10 @@ void ThreadResource::doRoom() {
vm._eventsManager._intPtr._hasPalette = true;
vm._graphicsManager.flipPage();
vm._eventsManager.sWaitFlip();
- } while (!vm.shouldQuit() && !voy._mouseClicked);
+ } while (!vm.shouldQuit() && !vm._eventsManager._mouseClicked);
- if (!voy._leftClick || i4e4 == -1) {
- if (voy._rightClick)
+ if (!vm._eventsManager._leftClick || i4e4 == -1) {
+ if (vm._eventsManager._rightClick)
breakFlag = true;
Common::Point pt = vm._eventsManager.getMousePos();
@@ -1258,7 +1258,7 @@ void ThreadResource::doRoom() {
vm._eventsManager.addComputerEventStart();
- voy._mouseClicked = false;
+ vm._eventsManager._mouseClicked = false;
vm._eventsManager.startCursorBlink();
int v = vm.doComputerText(9999);
@@ -1271,7 +1271,7 @@ void ThreadResource::doRoom() {
}
voy._field478 &= ~0x10;
- if (!voy._mouseClicked)
+ if (!vm._eventsManager._mouseClicked)
vm._eventsManager.delayClick(18000);
vm._bVoy->freeBoltGroup(vm._playStamp1);
@@ -1487,7 +1487,7 @@ int ThreadResource::doInterface() {
pt = _vm->_eventsManager.getMousePos();
if ((_vm->_voy._field476 <= _vm->_voy._RTVNum) || ((_vm->_voy._field478 & 0x80) &&
- (_vm->_voy._rightClick != NULL) && (pt.x == 0))) {
+ (_vm->_eventsManager._rightClick != NULL) && (pt.x == 0))) {
_vm->_eventsManager.getMouseInfo();
if (_vm->_voy._transitionId == 15) {
@@ -1495,7 +1495,7 @@ int ThreadResource::doInterface() {
_vm->_voy._transitionId = 17;
_vm->_soundManager.stopVOCPlay();
_vm->checkTransition();
- _vm->_voy._leftClick = true;
+ _vm->_eventsManager._leftClick = true;
} else {
_vm->_voy._field478 = 1;
_currentMouseX = pt.x;
@@ -1518,15 +1518,15 @@ int ThreadResource::doInterface() {
_vm->_eventsManager._intPtr.field1A = 0;
}
}
- } while (!_vm->_voy._rightClick && !_vm->shouldQuit() &&
- (!_vm->_voy._leftClick || regionIndex == -1));
+ } while (!_vm->_eventsManager._rightClick && !_vm->shouldQuit() &&
+ (!_vm->_eventsManager._leftClick || regionIndex == -1));
_vm->_voy._field478 |= 1;
_vm->_bVoy->freeBoltGroup(_vm->_playStamp1);
if (_vm->_playStamp2 != -1)
_vm->_soundManager.stopVOCPlay();
- return !_vm->_voy._rightClick ? regionIndex : -2;
+ return !_vm->_eventsManager._rightClick ? regionIndex : -2;
}
bool ThreadResource::goToStateID(int stackId, int sceneId) {