aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorSven Hesse2011-01-25 12:13:42 +0000
committerSven Hesse2011-01-25 12:13:42 +0000
commitff13458eb74348960baa852e0c6bdcdc97faf88e (patch)
treeb9b84530cf613c7962e9793700c427f8b86fc256 /engines
parentc8f58b4e194fe7b8f9cc985505d7ba0dd34cfb6f (diff)
downloadscummvm-rg350-ff13458eb74348960baa852e0c6bdcdc97faf88e.tar.gz
scummvm-rg350-ff13458eb74348960baa852e0c6bdcdc97faf88e.tar.bz2
scummvm-rg350-ff13458eb74348960baa852e0c6bdcdc97faf88e.zip
GOB: o7_draw0x57 is o7_intToString
svn-id: r55527
Diffstat (limited to 'engines')
-rw-r--r--engines/gob/inter.h2
-rw-r--r--engines/gob/inter_v7.cpp10
2 files changed, 6 insertions, 6 deletions
diff --git a/engines/gob/inter.h b/engines/gob/inter.h
index f49c3fe52d..7e0fc2572d 100644
--- a/engines/gob/inter.h
+++ b/engines/gob/inter.h
@@ -597,7 +597,7 @@ protected:
void o7_loadCursor();
void o7_displayWarning();
void o7_draw0x45();
- void o7_draw0x57();
+ void o7_intToString();
void o7_draw0x89();
void o7_draw0x8A();
void o7_getSystemProperty();
diff --git a/engines/gob/inter_v7.cpp b/engines/gob/inter_v7.cpp
index d971cf7c05..442ff15273 100644
--- a/engines/gob/inter_v7.cpp
+++ b/engines/gob/inter_v7.cpp
@@ -49,7 +49,7 @@ void Inter_v7::setupOpcodesDraw() {
OPCODEDRAW(0x0D, o7_loadCursor);
OPCODEDRAW(0x44, o7_displayWarning);
OPCODEDRAW(0x45, o7_draw0x45);
- OPCODEDRAW(0x57, o7_draw0x57);
+ OPCODEDRAW(0x57, o7_intToString);
OPCODEDRAW(0x89, o7_draw0x89);
OPCODEDRAW(0x8A, o7_draw0x8A);
OPCODEDRAW(0x8C, o7_getSystemProperty);
@@ -110,11 +110,11 @@ void Inter_v7::o7_draw0x45() {
warning("Addy Stub Draw 0x45: \"%s\", \"%s\"", str0.c_str(), str1.c_str());
}
-void Inter_v7::o7_draw0x57() {
- int16 index0 = _vm->_game->_script->readVarIndex();
- int16 index1 = _vm->_game->_script->readVarIndex();
+void Inter_v7::o7_intToString() {
+ uint16 valueIndex = _vm->_game->_script->readVarIndex();
+ uint16 destIndex = _vm->_game->_script->readVarIndex();
- warning("Addy Stub Draw 0x57: %d, %d", index0, index1);
+ sprintf(GET_VARO_STR(destIndex), "%d", READ_VARO_UINT32(valueIndex));
}
void Inter_v7::o7_draw0x89() {