aboutsummaryrefslogtreecommitdiff
path: root/engines/cruise/object.cpp
diff options
context:
space:
mode:
authorVincent Hamm2007-11-11 19:33:25 +0000
committerVincent Hamm2007-11-11 19:33:25 +0000
commit43437e6d749e3a95f6f23a265b399e08f86203ad (patch)
tree98881deb4cf0d8e8d0bffbe71beb9daa6eaeff27 /engines/cruise/object.cpp
parent6e6a864c17403a99ee866c2330061d6e31506bbe (diff)
downloadscummvm-rg350-43437e6d749e3a95f6f23a265b399e08f86203ad.tar.gz
scummvm-rg350-43437e6d749e3a95f6f23a265b399e08f86203ad.tar.bz2
scummvm-rg350-43437e6d749e3a95f6f23a265b399e08f86203ad.zip
Menu display fix
Linked objects implementation (barman) The gameplay is now kind of working and it is possible to play at least the first part of the game svn-id: r29478
Diffstat (limited to 'engines/cruise/object.cpp')
-rw-r--r--engines/cruise/object.cpp13
1 files changed, 12 insertions, 1 deletions
diff --git a/engines/cruise/object.cpp b/engines/cruise/object.cpp
index fdcf51323e..4119044880 100644
--- a/engines/cruise/object.cpp
+++ b/engines/cruise/object.cpp
@@ -128,7 +128,18 @@ void setObjectPosition(int16 ovlIdx, int16 objIdx, int16 param3, int16 param4) {
//overlayTable[param1].ovlData
switch (ptr->_class) {
- case 1:
+ case THEME:
+ case MULTIPLE:
+ {
+ if(param3 != 5)
+ return;
+ globalVars[overlayTable[ovlIdx].state + ptr->_stateTableIdx] = param4;
+ sortCells(ovlIdx, objIdx, &cellHead);
+ break;
+ }
+ case UNIQUE:
+ return;
+ case VARIABLE:
{
ptr2 = &overlayTable[ovlIdx].ovlData->arrayObjVar[ptr->_varTableIdx];