aboutsummaryrefslogtreecommitdiff
path: root/engines/agos/script_e2.cpp
diff options
context:
space:
mode:
authorTravis Howell2007-05-28 08:54:13 +0000
committerTravis Howell2007-05-28 08:54:13 +0000
commit0d789e074e6ff1ed76e75619eae9d337d3faad29 (patch)
tree87cbc892c1a23eeff3f6690f4e474f0a2cf80f15 /engines/agos/script_e2.cpp
parentbd67214c96c1bb1b194cfc31abf05a08afc9cf64 (diff)
downloadscummvm-rg350-0d789e074e6ff1ed76e75619eae9d337d3faad29.tar.gz
scummvm-rg350-0d789e074e6ff1ed76e75619eae9d337d3faad29.tar.bz2
scummvm-rg350-0d789e074e6ff1ed76e75619eae9d337d3faad29.zip
Fix glitches caused by interface differences in the AtariST verison of Elvira 2.
svn-id: r26988
Diffstat (limited to 'engines/agos/script_e2.cpp')
-rw-r--r--engines/agos/script_e2.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/engines/agos/script_e2.cpp b/engines/agos/script_e2.cpp
index ac278a6426..2ffb60731f 100644
--- a/engines/agos/script_e2.cpp
+++ b/engines/agos/script_e2.cpp
@@ -498,6 +498,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 +510,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 +518,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 +526,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 +534,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 / 10);
+ writeChar(window, 30, y, 6, val / 100);
+ writeChar(window, 32, y, 2, val / 10);
mouseOn();
}