aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Horn2003-05-16 02:33:08 +0000
committerMax Horn2003-05-16 02:33:08 +0000
commit9f272a2acf17cb96a358a6be5dfd6869ab0abb94 (patch)
tree0babdad19c4f7ef097b285d9a6857bcf0e318a6f
parent08e0fcbda4d8d8db184b67138b532815f9ed66fa (diff)
downloadscummvm-rg350-9f272a2acf17cb96a358a6be5dfd6869ab0abb94.tar.gz
scummvm-rg350-9f272a2acf17cb96a358a6be5dfd6869ab0abb94.tar.bz2
scummvm-rg350-9f272a2acf17cb96a358a6be5dfd6869ab0abb94.zip
fixed o2_getActorX / o2_getActorY (thanks MadMoose)
svn-id: r7564
-rw-r--r--scumm/script_v2.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/scumm/script_v2.cpp b/scumm/script_v2.cpp
index 03ea8b79f9..58c4f15745 100644
--- a/scumm/script_v2.cpp
+++ b/scumm/script_v2.cpp
@@ -1008,7 +1008,7 @@ void Scumm_v2::o2_getActorX() {
getResultPos();
a = getVarOrDirectByte(0x80);
- setResult(getObjX(a));
+ setResult(getObjX(a) / 8);
}
void Scumm_v2::o2_getActorY() {
@@ -1016,7 +1016,7 @@ void Scumm_v2::o2_getActorY() {
getResultPos();
a = getVarOrDirectByte(0x80);
- setResult(getObjY(a));
+ setResult(getObjY(a) / 2);
}
void Scumm_v2::o2_loadRoomWithEgo() {