diff -ur ScummVM-cvs20030602/scummvm/scumm/object.cpp ScummVM-cvs20030602+hack/scummvm/scumm/object.cpp
old
|
new
|
|
130 | 130 | _objectOwnerTable[obj] = owner; |
131 | 131 | } |
132 | 132 | |
| 133 | #ifndef BYPASS_COPY_PROT |
| 134 | #define BYPASS_COPY_PROT |
| 135 | #endif |
| 136 | |
133 | 137 | int Scumm::getState(int obj) { |
134 | 138 | checkRange(_numGlobalObjects - 1, 0, obj, "Object %d out of range in getState"); |
| 139 | |
| 140 | #if defined(BYPASS_COPY_PROT) |
| 141 | // I knew LucasArts sold cracked copies of the original Maniac Mansion, |
| 142 | // at least as part of Day of the Tentacle. Apparently they also sold |
| 143 | // cracked versions of the enhanced version. At least in Germany. |
| 144 | // |
| 145 | // This will keep the security door open at all times. I can only |
| 146 | // assume that 182 and 193 each correspond to one particular side of |
| 147 | // the it. Fortunately it does not prevent frustrated players from |
| 148 | // blowing up the mansion, should they feel the urge to. |
| 149 | |
| 150 | if (_gameId == GID_MANIAC && (obj == 182 || obj == 193)) |
| 151 | _objectStateTable[obj] |= 0x08; |
| 152 | #endif |
| 153 | |
135 | 154 | return _objectStateTable[obj]; |
136 | 155 | } |
137 | 156 | |
… |
… |
|
792 | 811 | ObjectData *od = &_objs[1]; |
793 | 812 | for (i = 1; i < _numLocalObjects; i++, od++) { |
794 | 813 | if (od->obj_nr > 0) |
795 | | od->state = _objectStateTable[od->obj_nr]; |
| 814 | od->state = getState(od->obj_nr); |
796 | 815 | } |
797 | 816 | } |
798 | 817 | |