Commit Graph

67 Commits

Author SHA1 Message Date
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
Max Horn
0e645f88ae renamed namespace ScummVM to Common
svn-id: r10544
2003-10-02 17:43:02 +00:00
Max Horn
6512592d0f moved Actor x/y to _pos.x/_pos.y -> this makes it much easier to grep for access of the actor position
svn-id: r10253
2003-09-14 18:16:45 +00:00
Max Horn
538812d9fc yet another tiny cleanup.... yeah yeah, I know I am annoying
svn-id: r10182
2003-09-11 22:36:21 +00:00
Max Horn
32c0168087 cleanup
svn-id: r10181
2003-09-11 22:26:44 +00:00
Max Horn
ff225c470c cleanup
svn-id: r10179
2003-09-11 22:00:36 +00:00
Max Horn
81f10baa68 cleanup
svn-id: r10169
2003-09-11 10:32:15 +00:00
Max Horn
07e8084eee replaced all use of scale items with scale slots. This allowed me to get rid of two big FIXME's, and might fix other scaling bugs in FT/DIG
svn-id: r10140
2003-09-09 17:29:22 +00:00
Max Horn
163ecdc054 added convertScaleTableToScaleSlot method, preparing to replace scale items with scale slots
svn-id: r10139
2003-09-09 16:55:25 +00:00
Travis Howell
603f8b8e3a Give pass its own id
svn-id: r9654
2003-08-13 02:21:36 +00:00
Travis Howell
117b7d0061 Fix regression
svn-id: r9629
2003-08-11 00:48:32 +00:00
Max Horn
3e0cd37cea get rid of GF_INDY3 again, and also remove GID_INDY3_256 and GID_INDY3_TOWNS
svn-id: r9554
2003-08-06 12:04:27 +00:00
Travis Howell
e4e9538038 Add GF_INDY3 feature flag for indy3 games to reduce checks
Remove GF_ADLIB_DEFAULT since it is no longer used

svn-id: r9546
2003-08-06 09:10:19 +00:00
Torbjörn Andersson
3b033956aa Changed "SCALLING" to "SCALING".
svn-id: r9134
2003-07-22 20:53:01 +00:00
Max Horn
dce17ed7ac fix for bug #775420; also properly implemented the 'box matrix truncated' workaround
svn-id: r9129
2003-07-22 19:01:38 +00:00
Max Horn
9b02cb4cce fixing bug #774783 for the VGA version, too - and I bet the FmTowns version will need this fix, too
svn-id: r9112
2003-07-21 22:11:33 +00:00
Max Horn
743ad2aaa6 really fix #774783 in IndyEGA (while the value '1' is not strictly correct, and in IndyVGA it is 0, and 0 is the logical value - this *has* to be 1 (and 1 is what the original returns, too, due to a bug)
svn-id: r9111
2003-07-21 22:08:39 +00:00
Max Horn
0a334bf269 Fix for bug #770690 and bug #774783
svn-id: r9110
2003-07-21 21:59:07 +00:00
Max Horn
2fbf782c05 moved some functions out of scummvm.cpp into more appropriate files; rearranged stuff inside scummvm.cpp to be grouped a bit more logical
svn-id: r9083
2003-07-19 18:18:01 +00:00
Max Horn
f60e8ff53e fix for bug #771803
svn-id: r9043
2003-07-15 19:20:40 +00:00
Max Horn
a52a80d4f5 workaround for bug #770351
svn-id: r8993
2003-07-13 19:50:35 +00:00
Max Horn
bc5dbf8e66 undoing my last box change - with the last change in actor.cpp, this should make MM boxes work properly and fix one or multiple of the open MM bugs
svn-id: r8953
2003-07-12 18:46:33 +00:00
Max Horn
b2f737888d fix box coordinates for v1/v2 games (boxes are now contiguous)
svn-id: r8943
2003-07-12 12:40:20 +00:00
Max Horn
92fd56f9f0 removed #include "boxes.h" from scumm.h; cleaned up AdjustBoxResult definition & usage; properly deal with larger box distances, thus partially fixing Zak on the airport (but original seems to have used a very different algorithm, so this really is only a partial fix)
svn-id: r8710
2003-07-02 13:47:03 +00:00
Max Horn
a610e14a11 this FIXME is obsoleted by my recent fix for getMaskFromBox
svn-id: r8678
2003-06-30 22:22:04 +00:00
Max Horn
36899b8200 fix for #740244 and #755863. This appears to have been a long standing bug in the original engine?
svn-id: r8676
2003-06-30 20:12:34 +00:00
Torbjörn Andersson
a8b61e464f The compressed box matrix would sometimes refer to the box after the last
one. This was probably harmless, but the fix seems to be trivial. I hope.

svn-id: r8441
2003-06-12 06:53:05 +00:00
Max Horn
17a5a69c04 fixed createBoxMatrix for small header games (bug #752844)
svn-id: r8438
2003-06-11 21:34:34 +00:00
Max Horn
f034b339cd reimplemented createBoxMatrix; this is much cleaner and easier to understand than the original code (IMHO); in a few cases it gives slightly different results (because the old code didn't always find the shortest path), but that shouldn't cause any problems
svn-id: r8403
2003-06-08 17:59:09 +00:00
Max Horn
f8ec8a9903 cleanup
svn-id: r8399
2003-06-08 12:49:34 +00:00
Max Horn
86df3537b9 replaced GF_AFTER with _version
svn-id: r8372
2003-06-07 00:13:26 +00:00
Max Horn
83e1815a72 some box debugging code
svn-id: r8182
2003-05-31 16:20:20 +00:00
Max Horn
2f9ff35bad moved Actor SaveLoadEntry definition to actor.cpp; made findPathTowards/findPathTowardsOld members of Actor; cleanup
svn-id: r7988
2003-05-26 02:26:13 +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
c8169afe2b proper fix for getPathToDestBox
svn-id: r7721
2003-05-20 12:54:04 +00:00
Max Horn
bc73fcf386 cleanup
svn-id: r7701
2003-05-19 20:36:39 +00:00
Max Horn
1e7f246755 fix assert for mi_demo2
svn-id: r7698
2003-05-19 19:52:08 +00:00
Max Horn
cf500b2450 enable box'ed walking in V2 games
svn-id: r7660
2003-05-19 00:25:26 +00:00
Max Horn
33d1f15f97 V2 walkbox matrix fixes
svn-id: r7657
2003-05-19 00:17:34 +00:00
Max Horn
8f7f22aeae implemented proper 'invalid walkbox' handling in older games (in newer games, box 0 is used as invalid box, while in older games this is a legal box and box 255 is the 'invalid' box); removed lots of FIXME's which were needed to cope with ScummVM not implementing the invalid walkbox stuff properly in the past; removed other actor FIXMEs.
svn-id: r7642
2003-05-18 19:44:22 +00:00
Jonathan Gray
d85abe1737 I thought it would be clear from the comments that this was needed for the atari st zak demo, which seems to still be the case
svn-id: r7616
2003-05-17 19:11:59 +00:00
Max Horn
a6d1c3e151 no no, bad hack be gone :-)
svn-id: r7609
2003-05-17 15:51:11 +00:00
Jamieson Christian
9d7cd48dcc Fixed VC++ warnings
svn-id: r7555
2003-05-16 00:07:47 +00:00
Max Horn
8b419944ee ScummPoint -> ScummVM::Point
svn-id: r7543
2003-05-15 21:57:38 +00:00
Max Horn
bf270d9243 walkbox & putActor coords in V2 are in 'character coordinates' - x has to multiplied by 8 and y by 2
svn-id: r7426
2003-05-10 23:47:39 +00:00
Max Horn
acb35fc915 renamed _scrWidth/_scrHeight -> _roomWidht/_roomHeight, and _realWidth/_realHeight -> _screenWidth/_screenHeight (inspired by MadMoose, but I'll take the blame - still this seems much more logical & intuitive)
svn-id: r7423
2003-05-10 21:49:59 +00:00
Max Horn
3a9d8cd8f4 implemented v2 walkboxes (at least the debugger output looks right now, though I might have overlooked something)
svn-id: r7406
2003-05-09 21:46:34 +00:00
Jonathan Gray
8c8406cf50 zakstdemo now finishes properly and loops etc, this check seems to be wrong for v2 games at least
svn-id: r7402
2003-05-09 03:02:49 +00:00
Max Horn
30e3a81618 use READ_LE_UINT16 instead of FROM_LE_16 to avoid unaligned memory access problems on PalmOS
svn-id: r7223
2003-04-30 12:57:46 +00:00