aboutsummaryrefslogtreecommitdiff
path: root/engines/tsage
diff options
context:
space:
mode:
authorStrangerke2012-02-14 18:52:05 +0100
committerStrangerke2012-02-14 20:10:18 +0100
commit1dcc8402b8dd57bbf5174a6d7a0c99b39fae7ccb (patch)
tree983cdb8d31d03307faf7a1ef930a51c9abd3e17e /engines/tsage
parent654016c9273bf5fc3810af8b55bf6f0c7694d982 (diff)
downloadscummvm-rg350-1dcc8402b8dd57bbf5174a6d7a0c99b39fae7ccb.tar.gz
scummvm-rg350-1dcc8402b8dd57bbf5174a6d7a0c99b39fae7ccb.tar.bz2
scummvm-rg350-1dcc8402b8dd57bbf5174a6d7a0c99b39fae7ccb.zip
TSAGE: R2R - Scene 1337: Implement on more AI function
Diffstat (limited to 'engines/tsage')
-rw-r--r--engines/tsage/ringworld2/ringworld2_scenes1.cpp13
1 files changed, 12 insertions, 1 deletions
diff --git a/engines/tsage/ringworld2/ringworld2_scenes1.cpp b/engines/tsage/ringworld2/ringworld2_scenes1.cpp
index 456cfb051f..0745855182 100644
--- a/engines/tsage/ringworld2/ringworld2_scenes1.cpp
+++ b/engines/tsage/ringworld2/ringworld2_scenes1.cpp
@@ -4616,7 +4616,18 @@ void Scene1337::subC34A1(unkObj1337sub1 *subObj1, unkObj1337sub1 *subObj2) {
}
Scene1337::unkObj1337sub1 *Scene1337::subC34EC(int arg1) {
- warning("STUBBED Scene1337::subC34EC()");
+ for (int i = 0; i <= 7; i++) {
+ if (_arrunkObj1337[arg1]._arr2[i]._field34 == 1) {
+ return &_arrunkObj1337[arg1]._arr2[i];
+ }
+ }
+
+ for (int i = 0; i <= 7; i++) {
+ if ((_arrunkObj1337[arg1]._arr2[i]._field34 != 0) && (_arrunkObj1337[arg1]._arr2[i]._field34 < 10)) {
+ return &_arrunkObj1337[arg1]._arr2[i];
+ }
+ }
+
return NULL;
}