aboutsummaryrefslogtreecommitdiff
path: root/engines/hopkins
diff options
context:
space:
mode:
authorStrangerke2013-06-25 07:14:29 +0200
committerStrangerke2013-06-25 07:14:29 +0200
commit9878c89b9753227bc73cd5914a69e6f817c302e8 (patch)
tree5a0203cc511ef8462c6747cf7871e12bd8a03e28 /engines/hopkins
parenta36178ff1dfa21703b30a3a4c0660ca0bcaff93b (diff)
downloadscummvm-rg350-9878c89b9753227bc73cd5914a69e6f817c302e8.tar.gz
scummvm-rg350-9878c89b9753227bc73cd5914a69e6f817c302e8.tar.bz2
scummvm-rg350-9878c89b9753227bc73cd5914a69e6f817c302e8.zip
HOPKINS: Add some comments
Diffstat (limited to 'engines/hopkins')
-rw-r--r--engines/hopkins/hopkins.cpp2
-rw-r--r--engines/hopkins/script.cpp2
2 files changed, 4 insertions, 0 deletions
diff --git a/engines/hopkins/hopkins.cpp b/engines/hopkins/hopkins.cpp
index 81dbcabd57..2aaf44c5d3 100644
--- a/engines/hopkins/hopkins.cpp
+++ b/engines/hopkins/hopkins.cpp
@@ -1138,12 +1138,14 @@ bool HopkinsEngine::runFull() {
break;
case 30:
+ // Shooting
_linesMan->setMaxLineIdx(15);
_globals->_characterMaxPosY = 440;
_objectsMan->sceneControl2("IM30", "IM30", "ANIM30", "IM30", 24, false);
break;
case 31:
+ // Shooting target
_objectsMan->sceneControl("IM31", "IM31", "ANIM31", "IM31", 10, true);
break;
diff --git a/engines/hopkins/script.cpp b/engines/hopkins/script.cpp
index 3d298b2e9e..7e150624b8 100644
--- a/engines/hopkins/script.cpp
+++ b/engines/hopkins/script.cpp
@@ -1217,6 +1217,7 @@ int ScriptManager::handleOpcode(const byte *dataP) {
break;
case 88:
+ // Shooting target - Shooting at target
if (_vm->_globals->_saveData->_data[svField183] == 1) {
_vm->_objectsMan->setBobAnimDataIdx(1, 0);
_vm->_objectsMan->setBobAnimDataIdx(2, 0);
@@ -1294,6 +1295,7 @@ int ScriptManager::handleOpcode(const byte *dataP) {
break;
case 90:
+ // Shooting target - Using the level
_vm->_soundMan->playSoundFile("SOUND52.WAV");
if (!_vm->_globals->_saveData->_data[svField186]) {
_vm->_animMan->playSequence("CIB5A.SEQ", 1, 12, 1, false, false);