aboutsummaryrefslogtreecommitdiff
path: root/scumm/object.cpp
AgeCommit message (Collapse)Author
2003-12-26got rid of those _maxFOO macros, replaced them by access to the equivalent ↵Max Horn
_numFOO variables svn-id: r11953
2003-12-25_inventory was sometimes accessed one-based and sometimes zero-based -> ↵Max Horn
always use zero-base, for consistency svn-id: r11925
2003-12-21Fix for bug #847805 (FOA: Assertion failed crash at lava pit)Max Horn
svn-id: r11808
2003-12-11Add option to enable copy protection in SCUMM games, which ScummVM disable ↵Travis Howell
it by default. svn-id: r11571
2003-12-06regression fix (bug #855313)Max Horn
svn-id: r11524
2003-12-06Fix for bug #853874 (ZAK: Can't Give Club in 5.5 build); this may cause ↵Max Horn
regressions, and/or fix other bugs. However, I believe this is the right thing (TM) to do anyway :-) svn-id: r11523
2003-11-16changed some shift operators to *, /Paweł Kołodziejski
svn-id: r11315
2003-11-08cleanup whitespacesPaweł Kołodziejski
svn-id: r11217
2003-10-29Revert since it still doesn't work right, last change stop messages about ↵Travis Howell
needing to go to Seattle. Need to good way to bypass zak copy protection, without issues. svn-id: r11005
2003-10-29Hopefully right this time, last change caused a cheat (Free air travel)Travis Howell
svn-id: r11003
2003-10-03introduced namespace Scumm; made #include statements use scumm/ prefix ↵Max Horn
explicitly svn-id: r10571
2003-10-02renamed class Scumm to ScummEngine (consisten with other engine names; also ↵Max Horn
makes room for a potential 'Scumm' namespace) svn-id: r10549
2003-09-24Whitespace changesTorbjörn Andersson
svn-id: r10390
2003-09-19changed scumm/object.cpp for V1/V2 once again - this time it really should ↵Max Horn
match the original behaviour svn-id: r10306
2003-09-14moved Actor x/y to _pos.x/_pos.y -> this makes it much easier to grep for ↵Max Horn
access of the actor position svn-id: r10253
2003-09-11let getObjActToObjActDist round up when dividing the distance by 8 for V1/V2 ↵Max Horn
games. This helps in fixing bug #774529, but might cause regressions... svn-id: r10184
2003-09-09cleanup; fix for bug #795942 (COMI: text display off screen) and #785760 ↵Max Horn
(COMI: Lockup/crash on Skull Island) svn-id: r10144
2003-07-28more sanity checksMax Horn
svn-id: r9208
2003-07-28adding an assert (better paranoid than letting a null pointer slip thru)Max Horn
svn-id: r9207
2003-07-28fix return values in getObjectOrActorXY; turned unsafe derefActorSafe call ↵Max Horn
into derefActor (return value of derefActorSafe was used w/o checking it for 0) svn-id: r9206
2003-07-24cleanup: encapsulate some more members of class Actor, and rename ↵Max Horn
newDirection -> targetFacing (since it corresponds to the future value of 'facing'; the distinction between 'facing' and 'direction' is extremly fuzzy) svn-id: r9175
2003-06-30this FIXME is obsoleted by my recent fix for getMaskFromBoxMax Horn
svn-id: r8678
2003-06-27fixed warningPaweł Kołodziejski
svn-id: r8664
2003-06-26paranoia fix for getOBCDFromObject, in casegetResourceAddress returns 0Max Horn
svn-id: r8653
2003-06-26added getOBIMFromObject and getObjectImage methods; changed code to use thoseMax Horn
svn-id: r8651
2003-06-26added ResourceIterator, replacing two of the old ↵Max Horn
findResource/findResourceSmall function - contraty to those, this approach is thread safe svn-id: r8650
2003-06-25added some const qualifiers; moved _bundle & _current_cd_sound from class ↵Max Horn
Scumm to class Sound; some other tweaks svn-id: r8648
2003-06-20seems monkeyega & monkeyvga have byte values for the object name offset, tooMax Horn
svn-id: r8571
2003-06-20fixed Zak256 (and possibly other V3 games); Not quite sure if the behaviour ↵Max Horn
is correct for V4 games, that needs testing svn-id: r8568
2003-06-19instead of casting to byte, rather allow offsets > 255Max Horn
svn-id: r8564
2003-06-18Fixed MSVC warningsJamieson Christian
svn-id: r8544
2003-06-16Bypass the Maniac Mansion copy protection by making the security door stayTorbjörn Andersson
open at all times, like some original versions did. This still leaves the player the option of blowing the mansion up by entering the wrong code. I still don't know if it has any unforseen side-effects. svn-id: r8517
2003-06-14Patch #754151: Removed READ_*_UNALIGNED and always read stuff bytewise; ↵Max Horn
augmented by some more changes of mine svn-id: r8482
2003-06-14runHook -> runInventoryScript, VAR_HOOK_SCRIPT -> VAR_INVENTORY_SCRIPTMax Horn
svn-id: r8468
2003-06-14Format string/argument mismatch fix.Torbjörn Andersson
svn-id: r8464
2003-06-07replaced GF_AFTER with _versionMax Horn
svn-id: r8372
2003-06-06v1 object drawing updates from aquadranJonathan Gray
svn-id: r8346
2003-06-06fixed almost object drawing for v1 games, (ugly hack for drawBitmap)Paweł Kołodziejski
svn-id: r8345
2003-06-01Reverted the recent o5_getClosestObjActor() change and fixed it byTorbjörn Andersson
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-01cleanup / added comments / code unificationMax Horn
svn-id: r8235
2003-05-31some setObjectName changes. I'd really like to switch V2-V5 to use ↵Max Horn
rtObjectName resources, too svn-id: r8171
2003-05-31cleanupMax Horn
svn-id: r8169
2003-05-30some cheap doxygen docs; cleanupMax Horn
svn-id: r8154
2003-05-30moved bomp stuff into own files; removed some of our 6 (!) bomp decodersMax Horn
svn-id: r8151
2003-05-30cleanupMax Horn
svn-id: r8145
2003-05-30work around nexus crash (only in old savegames?)Max Horn
svn-id: r8123
2003-05-28const as const can!Max Horn
svn-id: r8058
2003-05-26cleanupMax Horn
svn-id: r8007
2003-05-24some more debug outputMax Horn
svn-id: r7888
2003-05-23replaced many unsafe uses of derefActorSafe by derefActor; replaced ↵Max Horn
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