aboutsummaryrefslogtreecommitdiff
path: root/engines/voyeur/data.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2014-02-04 22:38:35 -0500
committerPaul Gilbert2014-02-04 22:38:35 -0500
commiteca87a63e9215ee6f37f62d5c9bb2389362512ee (patch)
treedc3ae74c8d7d6545b41ab0235b5eaedeca41aaf2 /engines/voyeur/data.cpp
parentf075f0336ea4f3315334f77d63836455c6a28e51 (diff)
downloadscummvm-rg350-eca87a63e9215ee6f37f62d5c9bb2389362512ee.tar.gz
scummvm-rg350-eca87a63e9215ee6f37f62d5c9bb2389362512ee.tar.bz2
scummvm-rg350-eca87a63e9215ee6f37f62d5c9bb2389362512ee.zip
VOYEUR: Renamings for the fields of the new StateResource class
Diffstat (limited to 'engines/voyeur/data.cpp')
-rw-r--r--engines/voyeur/data.cpp31
1 files changed, 15 insertions, 16 deletions
diff --git a/engines/voyeur/data.cpp b/engines/voyeur/data.cpp
index 9f528c1a76..f0521d28d2 100644
--- a/engines/voyeur/data.cpp
+++ b/engines/voyeur/data.cpp
@@ -237,35 +237,34 @@ void SVoy::reviewComputerEvent(int eventIndex) {
}
bool SVoy::checkForKey() {
- _vm->_controlPtr->_state->_v2 = 0;
+ _vm->_controlPtr->_state->_victimEvidenceIndex = 0;
if (_vm->_voy._victimMurdered)
return false;
for (int eventIdx = 0; eventIdx < _eventCount; ++eventIdx) {
VoyeurEvent &e = _events[eventIdx];
- int v1;
switch (e._type) {
case EVTYPE_VIDEO:
- switch (_vm->_controlPtr->_state->_v1) {
+ switch (_vm->_controlPtr->_state->_victimIndex) {
case 1:
if (e._audioVideoId == 33 && e._computerOn < 2 && e._computerOff >= 38)
- _vm->_controlPtr->_state->_v2 = 1;
+ _vm->_controlPtr->_state->_victimEvidenceIndex = 1;
break;
case 2:
if (e._audioVideoId == 47 && e._computerOn < 2 && e._computerOff >= 9)
- _vm->_controlPtr->_state->_v2 = 2;
+ _vm->_controlPtr->_state->_victimEvidenceIndex = 2;
break;
case 3:
if (e._audioVideoId == 46 && e._computerOn < 2 && e._computerOff > 2)
- _vm->_controlPtr->_state->_v2 = 3;
+ _vm->_controlPtr->_state->_victimEvidenceIndex = 3;
break;
case 4:
if (e._audioVideoId == 40 && e._computerOn < 2 && e._computerOff > 6)
- _vm->_controlPtr->_state->_v2 = 4;
+ _vm->_controlPtr->_state->_victimEvidenceIndex = 4;
break;
default:
@@ -274,17 +273,17 @@ bool SVoy::checkForKey() {
break;
case EVTYPE_AUDIO:
- switch (_vm->_controlPtr->_state->_v1) {
+ switch (_vm->_controlPtr->_state->_victimIndex) {
case 1:
if (e._audioVideoId == 8 && e._computerOn < 2 && e._computerOff > 26)
- _vm->_controlPtr->_state->_v2 = 1;
+ _vm->_controlPtr->_state->_victimEvidenceIndex = 1;
break;
case 3:
if (e._audioVideoId == 20 && e._computerOn < 2 && e._computerOff > 28)
- _vm->_controlPtr->_state->_v2 = 3;
+ _vm->_controlPtr->_state->_victimEvidenceIndex = 3;
if (e._audioVideoId == 35 && e._computerOn < 2 && e._computerOff > 18)
- _vm->_controlPtr->_state->_v2 = 3;
+ _vm->_controlPtr->_state->_victimEvidenceIndex = 3;
break;
default:
@@ -293,10 +292,10 @@ bool SVoy::checkForKey() {
break;
case EVTYPE_EVID:
- switch (_vm->_controlPtr->_state->_v1) {
+ switch (_vm->_controlPtr->_state->_victimIndex) {
case 4:
if (e._audioVideoId == 0x2400 && e._computerOn == 0x4f00 && e._computerOff == 17)
- _vm->_controlPtr->_state->_v2 = 4;
+ _vm->_controlPtr->_state->_victimEvidenceIndex = 4;
default:
break;
@@ -304,10 +303,10 @@ bool SVoy::checkForKey() {
break;
case EVTYPE_COMPUTER:
- switch (_vm->_controlPtr->_state->_v1) {
+ switch (_vm->_controlPtr->_state->_victimIndex) {
case 2:
if (e._computerOn == 13 && e._computerOff > 76)
- _vm->_controlPtr->_state->_v2 = 2;
+ _vm->_controlPtr->_state->_victimEvidenceIndex = 2;
break;
default:
@@ -316,7 +315,7 @@ bool SVoy::checkForKey() {
break;
}
- if (_vm->_controlPtr->_state->_v2 == _vm->_controlPtr->_state->_v1)
+ if (_vm->_controlPtr->_state->_victimEvidenceIndex == _vm->_controlPtr->_state->_victimIndex)
return true;
}