aboutsummaryrefslogtreecommitdiff
path: root/engines/agos/script_e2.cpp
diff options
context:
space:
mode:
authorDavid Corrales2007-05-31 23:44:43 +0000
committerDavid Corrales2007-05-31 23:44:43 +0000
commit0cab5b7791e56b32455748bf20c21f0d6b42f654 (patch)
tree9e6580328542f1db230e019ba77e3db1be8fa50b /engines/agos/script_e2.cpp
parent6c69d531d262e14fa02b6e1adb42baaa5c74dbe6 (diff)
parent22c0403e0dfec16badf156afa842c6c37e850263 (diff)
downloadscummvm-rg350-0cab5b7791e56b32455748bf20c21f0d6b42f654.tar.gz
scummvm-rg350-0cab5b7791e56b32455748bf20c21f0d6b42f654.tar.bz2
scummvm-rg350-0cab5b7791e56b32455748bf20c21f0d6b42f654.zip
Merged the fs branch with trunk. r26949:27031
svn-id: r27032
Diffstat (limited to 'engines/agos/script_e2.cpp')
-rw-r--r--engines/agos/script_e2.cpp31
1 files changed, 18 insertions, 13 deletions
diff --git a/engines/agos/script_e2.cpp b/engines/agos/script_e2.cpp
index 3b2c1203df..13cb15a8b9 100644
--- a/engines/agos/script_e2.cpp
+++ b/engines/agos/script_e2.cpp
@@ -1,6 +1,8 @@
-/* ScummVM - Scumm Interpreter
- * Copyright (C) 2001 Ludvig Strigeus
- * Copyright (C) 2001-2006 The ScummVM project
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
@@ -249,7 +251,7 @@ void AGOSEngine_Elvira2::setupOpcodes() {
/* 172 */
OPCODE(oe2_ifExitClosed),
OPCODE(oe2_ifExitLocked),
- OPCODE(oe2_unk174),
+ OPCODE(oe2_playEffect),
OPCODE(oe2_getDollar2),
/* 176 */
OPCODE(oe2_setSRExit),
@@ -498,6 +500,7 @@ void AGOSEngine_Elvira2::oe2_printStats() {
// 161: print stats
WindowBlock *window = _dummyWindow;
int val;
+ const uint8 y = (getPlatform() == Common::kPlatformAtariST) ? 131 : 134;
window->flags = 1;
@@ -509,7 +512,7 @@ void AGOSEngine_Elvira2::oe2_printStats() {
val = -99;
if (val > 99)
val = 99;
- writeChar(window, 10, 134, 0, val);
+ writeChar(window, 10, y, 0, val);
// PP
val = _variableArray[22];
@@ -517,7 +520,7 @@ void AGOSEngine_Elvira2::oe2_printStats() {
val = -99;
if (val > 99)
val = 99;
- writeChar(window, 16, 134, 6, val);
+ writeChar(window, 16, y, 6, val);
// HP
val = _variableArray[23];
@@ -525,7 +528,7 @@ void AGOSEngine_Elvira2::oe2_printStats() {
val = -99;
if (val > 99)
val = 99;
- writeChar(window, 23, 134, 4, val);
+ writeChar(window, 23, y, 4, val);
// Experience
val = _variableArray[21];
@@ -533,8 +536,8 @@ void AGOSEngine_Elvira2::oe2_printStats() {
val = -99;
if (val > 9999)
val = 9999;
- writeChar(window, 30, 134, 6, val / 100);
- writeChar(window, 32, 134, 2, val);
+ writeChar(window, 30, y, 6, val / 100);
+ writeChar(window, 32, y, 2, val / 10);
mouseOn();
}
@@ -597,10 +600,12 @@ void AGOSEngine_Elvira2::oe2_ifExitLocked() {
setScriptCondition(getExitState(i, n, d) == 3);
}
-void AGOSEngine_Elvira2::oe2_unk174() {
- // 174:
- uint a = getVarOrWord();
- debug(0, "oe2_unk174: stub (%d)", a);
+void AGOSEngine_Elvira2::oe2_playEffect() {
+ // 174: play sound
+ uint soundId = getVarOrWord();
+ loadSound(soundId);
+
+ debug(0, "oe2_playEffect: stub (%d)", soundId);
}
void AGOSEngine_Elvira2::oe2_getDollar2() {