Commit Graph

97 Commits

Author SHA1 Message Date
Max Horn 1749470ea7 moved some utility functions out of class Scumm
svn-id: r4618
2002-07-22 18:11:48 +00:00
Max Horn 37921ed5b7 fix for #583166 (hoagie doesn't enter mansion correctly); moved putActor into class Actor
svn-id: r4587
2002-07-18 15:45:10 +00:00
Max Horn 0843a2510c biiig checkin: removed more stuff from scumm.h; added new headers resource.h and object.h
svn-id: r4579
2002-07-16 21:03:14 +00:00
Max Horn 32e81beb45 got rid of _xPos, _yPos, _dir members in class Scumm
svn-id: r4578
2002-07-16 18:51:27 +00:00
Max Horn 824b14270c added costume.h; bumped build date in scumm.h (we have some quite big changes after all); switched ll and lr in the boxes code so that they really are what they are named after: lower left and right coords; removed some stuff from scumm.h/boxes.h
svn-id: r4575
2002-07-16 17:59:28 +00:00
Max Horn b019de6872 fixed #555647; got rid of some FIXME's
svn-id: r4570
2002-07-16 14:54:49 +00:00
Max Horn 21f82f0946 added Actor::isInClass convenience method; fixed typo in object.cpp; moved some functions from class Scumm to LoadedCostume
svn-id: r4560
2002-07-15 22:56:24 +00:00
Max Horn 438bb248e0 simplified the path finding code for 'old' games (this included getting rid of some global vars etc.)
svn-id: r4557
2002-07-15 21:50:51 +00:00
Max Horn 44c3cf0589 tiny fix to account for the fact that GF_SMALL_HEADER games have walk box 0
svn-id: r4554
2002-07-15 18:11:30 +00:00
Vincent Hamm f0f63107a2 fix an obscure typo
svn-id: r4552
2002-07-15 15:29:47 +00:00
Max Horn 43b8300eb2 fixed FIXME; this seems to be the correct way for walkActorOld to work
svn-id: r4532
2002-07-13 11:56:53 +00:00
Max Horn 0ea6fac174 fixed my bogus QNX fix :-)
svn-id: r4495
2002-07-08 13:44:00 +00:00
Max Horn 204a539419 two more small QNX fixes
svn-id: r4493
2002-07-08 13:33:10 +00:00
Max Horn b00225b9dc added some typecasts that might help QNX; updated NewGui TODO list
svn-id: r4489
2002-07-08 01:04:29 +00:00
Max Horn ad4809459d indent run
svn-id: r4480
2002-07-07 20:25:23 +00:00
Max Horn cb86e11583 indent run
svn-id: r4478
2002-07-07 19:31:51 +00:00
Max Horn ebcee86279 moved the code that enforces all actors to be redrawn on a full redraw to a more appropriate location; fixed the rendering sort algorithm (it now uses a stable sort algorithm, namely bubble sort) - it used to produce a 'flicker' effect in some cases previously
svn-id: r4415
2002-06-07 16:54:11 +00:00
Max Horn d35eed21f1 more Actor class cleanup; renamed unkRoomFunc4 to palManipulate and added an icky, wrong implementation for it - yes this is complete nonsense but I'll try to replace it with the right thing RSN :-)
svn-id: r4404
2002-06-04 23:32:53 +00:00
Max Horn 08cdef1619 fixed warning
svn-id: r4402
2002-06-03 21:52:34 +00:00
Max Horn 9ca2964e74 remove obsolete stuff
svn-id: r4400
2002-06-03 21:49:46 +00:00
Max Horn c96245f631 added some comments; fixed #558310
svn-id: r4391
2002-06-01 21:45:15 +00:00
Vincent Hamm 657a92e964 fixed a missplaced memset in akos code. Fixed a typo in the Makefile
svn-id: r4384
2002-05-25 18:56:28 +00:00
Max Horn 0620c9d66a removed some debug output I left in accidentally in my last checkin; removed some uses of g_scumm (see Endy, I promised I'd do it <g>); removed getSideOfLine(); some clean up
svn-id: r4378
2002-05-23 21:22:08 +00:00
Max Horn de99ad11b6 removed/disabled debug code
svn-id: r4377
2002-05-23 00:45:59 +00:00
Max Horn 8fd03ae929 moved more stuff out of the Scumm class (usage of g_scumm is only temporary, Endy, no worries <g>); some other cleanup
svn-id: r4376
2002-05-23 00:37:00 +00:00
Vincent Hamm a41fd620cb Reenabled the 1024 flag for direction interpolation
svn-id: r4372
2002-05-22 12:35:17 +00:00
Vincent Hamm 22f5be69f6 Fixed a bit of dig's walking bugs. But I'm still diabling the walk script since it's causing troubles..
svn-id: r4371
2002-05-22 12:24:48 +00:00
Vincent Hamm 1db4ae7c2f Temp removal of the actor walk script execution to fix dig's walking
svn-id: r4364
2002-05-20 16:02:29 +00:00
Max Horn 0c861c9ff2 moved isCostumeInUse() to costume.cpp; make use of isInCurrentRoom(); added missing FIXME comment for a FT hack
svn-id: r4362
2002-05-20 14:41:47 +00:00
Max Horn cb150cd11d setupShadowPalette doesn't belong into actor.cpp; it's only used in script_v2.cpp, hence moving it there
svn-id: r4360
2002-05-20 14:28:02 +00:00
Max Horn 64c6113d15 removed actor.h from scumm.h; added _scumm member var to class Actor; some var renaming in preparation of more methord refactoring
svn-id: r4333
2002-05-14 23:35:28 +00:00
James Brown aad1bf4104 fix some warnings, odd code, and prevent Simon segfaulting when wrong game specified.
svn-id: r4321
2002-05-14 19:44:41 +00:00
Max Horn fe4230bcbf refactored parts of actor.cpp: many methods are now members of class Actor instead of class Scumm. This is still work in progress!
svn-id: r4319
2002-05-14 19:11:20 +00:00
Max Horn c2b26a4590 once more changed the face direction calculation; allows to remove MI2 bridge hack in script_v1.cpp
svn-id: r4277
2002-05-11 14:55:03 +00:00
Max Horn 1f46cee135 one more direction 'fix', getting rid of one FIXME hack for Indy 4
svn-id: r4275
2002-05-10 21:35:53 +00:00
Paweł Kołodziejski 939f9314fa Two fixmes - one for iMUSE bug in Sam and Max, the other for MI1VGA scaling
svn-id: r4270
2002-05-10 18:47:37 +00:00
James Brown 22cd647bbe Fix mystery vortex freeze.
svn-id: r4264
2002-05-10 16:08:22 +00:00
Max Horn 875e370207 use normalizeAngle; use MF_NEW_LEG/MF_IN_LEG/MF_TURN/MF_LAST_LEG instead of 1/2/4/8 - easier to understand, and that's what we have these consts for anyway, no?
svn-id: r4263
2002-05-10 15:43:50 +00:00
Max Horn 8dbcdc661f renamed fixActorDirection to setActorDirection; fixed a bug causing wrong actor directions
svn-id: r4260
2002-05-10 13:45:32 +00:00
Lionel Ulmer 38d7d2140d Another fix for LoomCD. Now Valgrind does not reports any error
anymore in LoomCD (well, with a small hack still active :-) ).

svn-id: r4156
2002-05-01 10:48:09 +00:00
Vincent Hamm 5fadebd951 Quick fix to ft's fuel tower bug
svn-id: r4071
2002-04-24 07:53:48 +00:00
James Brown 280136f13a Fix Indy4/MI2 crash due to VirtScroll code.
Cleanup \N's - For gods sake fix your CVS client :)

svn-id: r4067
2002-04-24 04:26:09 +00:00
Vincent Hamm 7ca32ea5eb Made great progress with the akos codec 5. Placement is now correct but still experiencing bugs with background reset. Also fixed missing dialogues in dig when the talking actor isn't in the room (fix not 100% correct yet).
svn-id: r4057
2002-04-22 22:18:24 +00:00
Vincent Hamm f90a05e3b1 Fix (hack) imuse for samnmax. Fix (hack) samnmax inventory screen
svn-id: r4037
2002-04-21 17:54:59 +00:00
James Brown 43a4a9c8e5 Add fixme hack to room 17 FOA cost animation.
Remove \M from costume.cpp - how do these get here?!?! :)

svn-id: r4032
2002-04-21 09:20:38 +00:00
James Brown df31144cc7 Move putClass forceclip into costume renderer. Fixes Loom bugs.
svn-id: r3996
2002-04-18 15:34:45 +00:00
James Brown e9c726f583 Remove box==0 mask forcing. Yaz - this isn't right.. it breaks all the other games, and I don't think something like this would be a game specific hack.
svn-id: r3985
2002-04-18 00:56:30 +00:00
Vincent Hamm 1a8c30e225 Forced masking for box 0. Correct a few things. Bobbin is buggy when starting a new game in Loom, but that's the consequence of another bug.
svn-id: r3984
2002-04-17 21:44:19 +00:00
James Brown 6e508eed29 Fix anti-aliasing crash and a Zak crash. Note there are still AA
artifacts left on screen. Anyone want to fix this? :)

svn-id: r3909
2002-04-11 20:10:47 +00:00
James Brown 7696081c54 Large pointless reindentation of all the code. Also fixed a few mistakes
in the object flags code cleanup.

Flags used:

indent *.cpp -br -bap -nbc -lp -ce -cdw -brs -nbad -nbc -npsl -nip
-ts2 -ncs -nbs -npcs -nbap -Tbyte -Tuint32 -Tuint8 -Tuint16 -TArrayHeader
-TMemBlkHeader -TVerbSlot -TObjectData -Tvoid -TImageHeader -TRoomHeader
-TCodeHeader -TResHdr -TBompHeader -TMidiChannelAdl -TGui -TScumm
-TSoundEngine -TPart -TPlayer

svn-id: r3908
2002-04-11 17:19:16 +00:00