Commit graph

284 commits

Author SHA1 Message Date
Travis Howell
f20c47bb21 Add Indy3 FM Towns support, patch #773434
svn-id: r9062
2003-07-18 05:49:21 +00:00
Max Horn
963ecad362 debug/warning/error all automatically output a newline
svn-id: r8991
2003-07-13 16:22:17 +00:00
Travis Howell
22edb8c39b Revert my last change, made some in text text unreadable (black).
Could more palette change be required for 32 color Amiga versions ?

svn-id: r8965
2003-07-13 05:07:27 +00:00
Travis Howell
53ac8f62cf Commit fixme to prevent some issues on Amiga verison of MI2
svn-id: r8963
2003-07-13 03:05:41 +00:00
Jonathan Gray
8e94094c9d consistent case statement options, and make warnings more useful
svn-id: r8961
2003-07-13 02:25:36 +00:00
Travis Howell
817d600d8e More fixes from Hibernatus
svn-id: r8792
2003-07-06 06:36:26 +00:00
Max Horn
095b68d74f partially implemented the Audio CD query opcode in Zak256 (see bug #762589); cleanup
svn-id: r8680
2003-06-30 23:18:20 +00:00
Max Horn
2f11bb5dd7 fix for 'default talk color' use of actorSet opcode (fix for bug #755888)
svn-id: r8655
2003-06-26 14:38:48 +00:00
Max Horn
22e979de21 still don't know how the o5_startMusic opcode works in Zak (if it is even music releated), but this way makes more sense (thanks to Hibernatus)
svn-id: r8643
2003-06-24 17:31:35 +00:00
Max Horn
1465598aad finally implemented this TODO: using class File instead of fopen
svn-id: r8588
2003-06-21 20:27:48 +00:00
Max Horn
fc8e12444a seems monkeyega & monkeyvga have byte values for the object name offset, too
svn-id: r8571
2003-06-20 11:14:18 +00:00
Max Horn
f301d1fa47 fixed Zak256 (and possibly other V3 games); Not quite sure if the behaviour is correct for V4 games, that needs testing
svn-id: r8568
2003-06-20 10:53:06 +00:00
Max Horn
a3feb46080 instead of casting to byte, rather allow offsets > 255
svn-id: r8564
2003-06-19 18:08:39 +00:00
Jamieson Christian
9e51924166 Fixed MSVC warnings
svn-id: r8544
2003-06-18 22:35:03 +00:00
Max Horn
f0a39d718a fix for o5_walkActorToActor; this seems to be more like what V3 games expect (and fixes bug #755113); but I don't know for sure about V5 games (and I have to wonder if the corresponding code for V6 isn't maybe wrong, too...?)
svn-id: r8538
2003-06-18 12:33:46 +00:00
Max Horn
f7a8cbf7c7 Patch #754151: Removed READ_*_UNALIGNED and always read stuff bytewise; augmented by some more changes of mine
svn-id: r8482
2003-06-14 18:52:30 +00:00
Max Horn
f4a31da513 runHook -> runInventoryScript, VAR_HOOK_SCRIPT -> VAR_INVENTORY_SCRIPT
svn-id: r8468
2003-06-14 12:23:30 +00:00
Torbjörn Andersson
423ccef9a2 Hack to avoid bad actor crash in o5_walkActorToActor() when using the camel
in the FOA "wits" path. We have a number of these hacks now...

svn-id: r8460
2003-06-13 17:35:44 +00:00
Max Horn
0503b553df some walk fixes
svn-id: r8439
2003-06-11 21:45:47 +00:00
Max Horn
fedc3b7e62 Fix for bug #654286: ZAK256: Ending credits are illegible
svn-id: r8383
2003-06-07 18:26:51 +00:00
Max Horn
49b9a8fc9d follow our coding conventions
svn-id: r8377
2003-06-07 00:49:36 +00:00
Max Horn
86df3537b9 replaced GF_AFTER with _version
svn-id: r8372
2003-06-07 00:13:26 +00:00
Max Horn
d84c5de8e8 looks like a glitch?
svn-id: r8302
2003-06-04 23:15:42 +00:00
Max Horn
4292d621af cleaned up the restart/pause/shutdown situation a bit; added comment that explains how restart might be implemented
svn-id: r8260
2003-06-02 02:25:24 +00:00
Max Horn
88f1a4e27c fix for indy3 VGA script bug (bug #743314)
svn-id: r8259
2003-06-02 01:45:03 +00:00
Max Horn
3d77f7230e Enabled walk sounds in Indy3EGA/ZakEGA; cleanup (bug #747068)
svn-id: r8249
2003-06-01 18:20:38 +00:00
Torbjörn Andersson
7cfe07fdd3 Reverted the recent o5_getClosestObjActor() change and fixed it by
measuring the distance in characters for V2 games instead. Now Edna won't
bring the same strange kid into the cell over and over again.

If necessary, we can still fix o5_getClosestActor() to handle larger
distances. It just takes a few more changes than I first thought.

svn-id: r8243
2003-06-01 16:40:15 +00:00
Max Horn
5202a59c63 some setObjectName changes. I'd really like to switch V2-V5 to use rtObjectName resources, too
svn-id: r8171
2003-05-31 12:17:58 +00:00
Max Horn
877ca1b859 Workaround for bug #746349
svn-id: r8157
2003-05-30 22:22:51 +00:00
Max Horn
238e759630 modified o5_getClosestObjActor to find actors/objects more than 255 pixels away
svn-id: r8143
2003-05-30 14:33:05 +00:00
Max Horn
691e1f390a rewrote Actor::needBgReset related code (this could cause regressions...)
svn-id: r8126
2003-05-30 00:55:21 +00:00
Max Horn
6ec53131aa work around bug #743615
svn-id: r8006
2003-05-26 14:43:02 +00:00
Max Horn
07df5bd181 cleanup / minor tweak
svn-id: r7890
2003-05-24 16:11:47 +00:00
Max Horn
c333b6d6ec replaced many unsafe uses of derefActorSafe by derefActor; replaced derefActorSafe/assert pairs by derefActor (gives better error message); replaced various derefActorSafe/if(a!=0) pairs by derefActor (in cases where the deref should never fail, ever, except due to a bug in ScummVM)
svn-id: r7859
2003-05-23 13:24:41 +00:00
Max Horn
f802c2a7ba clarified / tightened the o5_actorSet hack for actor 0 (it seems to be there for the same reasons as in V2: only to set a default actor talk color)
svn-id: r7857
2003-05-23 12:08:36 +00:00
Max Horn
cafb78a83c v2 fix for o5_getDist (thx segra)
svn-id: r7845
2003-05-23 01:33:43 +00:00
Max Horn
1740bfcee3 added tons of asserts; added warnings for other cases where we so far silently ignored invalid actors; replaced a few of such warnings with asserts (if they are needed somewhere, feel free to re-add them, but this time with a comment explaining *why* - i.e. bug id, or explanation on how to reproduce the problem)
svn-id: r7844
2003-05-23 01:32:15 +00:00
Max Horn
4fc70168b4 o5_walkActorToActor cleanup, and fixed for V2
svn-id: r7841
2003-05-23 00:52:31 +00:00
Max Horn
edf5946c40 some well placed asserts (triggering any of those means with 99% a bug in some other place; so don't just remove the asserts if you trigger one of 'em!
svn-id: r7840
2003-05-23 00:22:41 +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
c78664cbc9 renamed talkFrame1/talkFrame2 to talkStartFrame/talkStopFrame
svn-id: r7819
2003-05-22 09:58:33 +00:00
Max Horn
86d57f3c7a many pedantic warning fixes (and some actual potential buglets fixed, too)
svn-id: r7795
2003-05-21 18:09:49 +00:00
Max Horn
8a82e59065 constness fixes
svn-id: r7787
2003-05-21 16:28:02 +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
34eee8b33b cleanup
svn-id: r7756
2003-05-20 23:05:34 +00:00
Max Horn
49e7f7564a renamed various things for clarity
svn-id: r7754
2003-05-20 20:58:26 +00:00
Max Horn
1a394aa3c7 added enum's for the known actor/object claasses; extended putClass/getClass to translate the X/Y flip classes; made code use the new enum's; some other cleanup
svn-id: r7753
2003-05-20 20:42:28 +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
Jamieson Christian
5a89820f0d Fixed VC++ warnings
svn-id: r7690
2003-05-19 15:40:34 +00:00
Max Horn
18a6b5dcc1 renamed ScriptSlot::unk1/unk2 to freezeResistant/recursive
svn-id: r7688
2003-05-19 11:31:35 +00:00