Commit graph

128 commits

Author SHA1 Message Date
Max Horn
923adce456 fix endian bug when dealing with ArrayHeader's; added a hack to permit save games broken due to this to still work; moved the whole 'Array' stuff into ScummEngine_v6
svn-id: r12521
2004-01-19 20:27:31 +00:00
Max Horn
e8164dfb70 moved some V6-only scumm vars to ScummEngine_v6
svn-id: r12517
2004-01-19 19:47:47 +00:00
Max Horn
d094989ae2 smush and insane only work with V6 (this will allow moving some stuff from ScummEngine to ScummEngine_v6)
svn-id: r12516
2004-01-19 19:34:48 +00:00
Max Horn
ee53fb4391 Fix for bug #873688
svn-id: r12274
2004-01-09 13:14:59 +00:00
Max Horn
033ff78ae9 updated copyright notice
svn-id: r12176
2004-01-06 12:45:34 +00:00
Travis Howell
bfd8549739 Add another HE games opcode and case.
svn-id: r12084
2004-01-02 13:21:13 +00:00
Max Horn
3364949c82 Patch #861716: palManipulateInit for V6 games (I modified the patch a bit)
svn-id: r11718
2003-12-17 17:12:09 +00:00
Paweł Kołodziejski
aa848961b3 changed opcode name to actorOps
svn-id: r11243
2003-11-10 08:46:40 +00:00
Paweł Kołodziejski
514a9b5120 renamed back to o6_ifclassofif and extended names for dim opcodes
svn-id: r11242
2003-11-10 08:00:55 +00:00
Paweł Kołodziejski
2b509bc0b6 renamed opcode and added sobopcode comments
svn-id: r11236
2003-11-10 00:05:17 +00:00
Paweł Kołodziejski
a657b8e7ba renamed some opcodes and added sobopcode comments
svn-id: r11232
2003-11-09 22:12:16 +00:00
Paweł Kołodziejski
1f9e408e2f cleanup whitespaces
svn-id: r11217
2003-11-08 21:59:32 +00:00
Max Horn
53db0a8a07 cleanup: removed version/id from GameSettings
svn-id: r10995
2003-10-28 17:07:25 +00:00
Max Horn
d7660a2662 introduced namespace Scumm; made #include statements use scumm/ prefix explicitly
svn-id: r10571
2003-10-03 18:33:57 +00:00
Max Horn
3f55f2669d renamed class Scumm to ScummEngine (consisten with other engine names; also makes room for a potential 'Scumm' namespace)
svn-id: r10549
2003-10-02 22:42:03 +00:00
Paweł Kołodziejski
199e9632b8 fixed badly commit
svn-id: r10244
2003-09-13 21:04:47 +00:00
Paweł Kołodziejski
b735d9031d implemented fileWrite opcode
svn-id: r10242
2003-09-13 20:54:12 +00:00
Paweł Kołodziejski
0c0f967c59 implemented fileread opcode
svn-id: r10232
2003-09-13 16:25:33 +00:00
Max Horn
b6e4fb2ef7 since _hFileTable is only used by Scumm_v6, there is no reason to put it into class Scumm
svn-id: r10227
2003-09-13 13:59:46 +00:00
Max Horn
87dd04e038 fix for bug #776807 (MM: Jail Door Closes). Our doSentence implementation should now be pretty close to what the original does. But regressions are possible...
svn-id: r10161
2003-09-10 17:15:44 +00:00
Max Horn
1080dac5ac instead of abusing the 'recursive' attribute to flag V2 background scripts, use the freezeResistant attribute. This is a bit more consistent. Also, verb 254 should stop *any* sentence script, not just background ones; some cleanup
svn-id: r10159
2003-09-10 15:02:58 +00:00
Jonathan Gray
b5ece53748 cleanup and make script_v2 use o5_saveLoadGame
svn-id: r9941
2003-08-31 15:39:27 +00:00
Jonathan Gray
f77faa2313 some things needed for supporting original save/load screens in v3 games, doesn't fully work but doesn't break anything either
svn-id: r9940
2003-08-31 14:58:56 +00:00
Jonathan Gray
876fe0ac8a add readINI stub (a HEv7 op)
svn-id: r9894
2003-08-28 15:23:23 +00:00
Travis Howell
9b5eb1137f Add support for flashlight in v1 maniac by converting older values.
Prevent warning about dummy function (Which has no purpose) in zak

svn-id: r9756
2003-08-18 10:46:42 +00:00
Jonathan Gray
413f09eff5 add maniacnes target, rather prelimary so people would be well advised not to add to compatibility at this point
svn-id: r9690
2003-08-14 11:40:50 +00:00
Jochen Hoenicke
077b643ea0 Fix recursive calls of object scripts. In V2 for each object two script
can be active at the same time:  One 253 script and one normal script.
We misuse the recursive flag to mark 253 scripts.  When starting a 253
script we stop a script that has recursive flag set and when starting
a normal script we stop the script that doesn't.

svn-id: r9068
2003-07-18 18:55:04 +00:00
Max Horn
b88b7f3389 reduced duplicate code
svn-id: r9027
2003-07-14 22:21:11 +00:00
Jochen Hoenicke
177d5d6b11 Compares in V2 are unsigned (at least in Zak).
This fixes a problem with the parachute scene in Zak.

svn-id: r9020
2003-07-14 19:57:44 +00:00
Max Horn
d35c57a53f fixes for cutscenes in V2 games
svn-id: r8956
2003-07-12 22:00:59 +00:00
James Brown
00d5c5af89 Add a few more actor debugger subcommands, and correct V2 coordinate translation for
o2_(get/set)ActorElevation

svn-id: r8683
2003-07-01 04:20:41 +00:00
Max Horn
d0b2e56194 more camera spliting
svn-id: r8121
2003-05-29 23:44:24 +00:00
Max Horn
1db0f749ca moved camera stuff to own file
svn-id: r8099
2003-05-29 12:55:28 +00:00
James Brown
aa919f3508 A few small V2 detection/init changes
svn-id: r8085
2003-05-29 08:05:20 +00:00
Max Horn
2b13ad92e4 fixed Zak cashcard
svn-id: r7836
2003-05-22 22:42:44 +00:00
Max Horn
a9788c771a from the MM/Zak scripts, the code etc. it's clear that unk2 is the sentence preposition
svn-id: r7827
2003-05-22 14:10:20 +00:00
Max Horn
743d9da78d evil bug in V2 bitvar code fixed -> no more MM cutscene skip crash
svn-id: r7782
2003-05-21 14:25:14 +00:00
Max Horn
e21604663f added v2 cutscene support (not quite complete; and crashes at some point in maniac because VAR_EGO contains a bogus value); cleanup
svn-id: r7781
2003-05-21 14:00:19 +00:00
Max Horn
3e3d6f1360 renamed o2_matrixOps -> o2_setBoxFlags; V2 'objY' fixes; cleanup
svn-id: r7739
2003-05-20 16:13:34 +00:00
Jonathan Gray
243bcc74d3 sync local changes, fix pickOneOf
svn-id: r7668
2003-05-19 04:29:41 +00:00
Max Horn
657c8ca2e3 more V2 sentence cleanup
svn-id: r7631
2003-05-18 12:52:27 +00:00
Max Horn
3576b8e168 yet another V2 sentence fix (now clicking on objects in Zak causes Zak to talk to it - but he gets stuck after some time)
svn-id: r7613
2003-05-17 18:42:31 +00:00
James Brown
99b26a5684 Name some vars
svn-id: r7597
2003-05-17 06:04:22 +00:00
Jonathan Gray
1f7ebc70d8 add stub for a hev7 op
svn-id: r7593
2003-05-17 01:57:54 +00:00
Max Horn
64d9c75c2d cleanup
svn-id: r7583
2003-05-16 22:11:49 +00:00
Max Horn
f495c14d84 opcodes are just one byte
svn-id: r7513
2003-05-14 20:37:53 +00:00
Max Horn
feee742268 added opcode 0xf7 (getActorZPlane)
svn-id: r7497
2003-05-14 10:16:57 +00:00
Max Horn
79d3863db4 more V2 'char coord' fixes
svn-id: r7427
2003-05-11 00:03:03 +00:00
Max Horn
98881c3a6a init all VAR_* variables to 0xFF; replaced access to _vars in the form _vars[VAR_*] by VARS(VAR_*) which performs a validity checK; renamed _vars to _scummVars to make sure I updated all places; fixed two places where V6 and newer games would access V5 vars (but there are still some left, it seems); checked VAR access for now only generates a warning
svn-id: r7393
2003-05-08 15:48:50 +00:00
Max Horn
ac0897515d unified o?_isEqual, too (but not as nice due to hack)
svn-id: r7340
2003-05-05 09:25:07 +00:00