aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm/actor.cpp
AgeCommit message (Collapse)Author
2012-02-15JANITORIAL: Fix missing whitespace in pointer castTarek Soliman
find -name '*.h' -or -name '*.cpp' | xargs sed -r -i 's@\(([A-Za-z0-9]+)\*\)@(\1 *)@g' This seems to have caught some params as well which is not undesirable IMO. It also caught some strings containing this which is undesirable so I excluded them manually. (engines/sci/engine/kernel_tables.h)
2012-02-11Revert "SCUMM: revert savegame version to 89"Willem Jan Palenstijn
This reverts commit 65fc7225bb31e72120dcdf16e91ae377c657548d. Increasing the savegame version on a branch and then decreasing it again leads to problems with loading current savegames in old commits during a bisect.
2012-02-11SCUMM: revert savegame version to 89Tobias Gunkel
Previous versions 89-92 are merged into version 89.
2012-02-11SCUMM: remove unnecessary cast to Actor_v0Tobias Gunkel
2012-02-11SCUMM: replaced A with a0 to avoid upper-case local varsTobias Gunkel
2012-02-11SCUMM: cleanup and separation of objIsActor()/objToActor()/actorToObj() for ↵Tobias Gunkel
v0 and other engines
2012-02-11SCUMM: match style-guide, add missing spaces between some "if ()", "for ()"Tobias Gunkel
2012-02-11SCUMM: add support for diagonal walking between boxes (e.g. used for meteor ↵Tobias Gunkel
opening scene)
2012-02-11SCUMM: Remove old codeRobert Crossfield
2012-02-11SCUMM: Few changes for animations, dont move while turning & not necessary ↵Robert Crossfield
to call animateactor during startanimactor
2012-02-11SCUMM: replace "c64" with "v0" when it applies to both C64 and AppleII v0 ↵Tobias Gunkel
versions In addition some routines (e.g. the gfx ones) that are even used in v1.
2012-02-11SCUMM: save complete v0 state and initialize actors correctlyTobias Gunkel
2012-02-11SCUMM: remove the temporary variable _limb_currentTobias Gunkel
2012-02-11SCUMM: adjust to coding style-guideTobias Gunkel
2012-02-11SCUMM: Fix ActorStop, V0 needs to set the stop directionRobert Crossfield
2012-02-11SCUMM: isPlayer() is not supported by engine v0Tobias Gunkel
2012-02-11SCUMM: fix diagonal walking in at least MM v0Tobias Gunkel
The comparison "ABS((int)(deltaXFactor >> 16)) > _speedx)" does not work as "deltaXFactor >> 16" will clear the fractional part of deltaXFactor. As a result the deltaXFactor might be bigger than (_speedx<<16) and the actor moves faster than he should.
2012-02-11SCUMM: Fix V0 Sound, and a direction issue (affected walking down the ladder)Robert Crossfield
2012-02-11SCUMM: V0 always turns actor towards camera when entering room, remove ↵Robert Crossfield
unnecessary loadcostume
2012-02-11SCUMM: Remove unnecessary calls to animateActorRobert Crossfield
2012-02-11SCUMM: Fix Tentacle issue, and possibly some other animation issuesRobert Crossfield
2012-02-11SCUMM: fix actor climbing on plant or swimming pool ladderTobias Gunkel
Before, the actor will descend the ladder of the pool and maybe even into the the pool. Another issue fixed by this is the actor climbing onto the plant pot if you give something to it.
2012-02-11SCUMM: fix for old savegamesTobias Gunkel
2012-02-11SCUMM: Animations fix again, no need for the hack nowRobert Crossfield
2012-02-11SCUMM: Remove the setCmdFromDirection functionRobert Crossfield
2012-02-11SCUMM: Animation FixesRobert Crossfield
2012-02-11SCUMM: Fix the animation system, rename the Limb Frame Repeat variableRobert Crossfield
2012-02-11SCUMM: fix saving of array _byte_FCE2Tobias Gunkel
2012-02-11SCUMM: fix v0 mode handling and actor switchingTobias Gunkel
- handle mode switching correctly - do not freeze scripts in cutscene mode (mode 0), as some scripts are freezed in mode 0 that should not be freezed - kModeNoNewKid (mode 2) needs the same userState as mode 3 - rename o_cursorCommand to o_setMode as it is not really cursor specific - handle actorHiding correctly (do not set costume to 0 as the previous costume cannot be reverted after hiding) - add drawSentence - document meanings for actor misc flags - fix actor names for "new kid" if the radiation suit is used (all kids are set to 0 then with actor 0 name " ") - cleanup actor switching routine - _userPut is not used anymore in v0
2012-02-11SCUMM: Re-arrange some things to make it closer to the originalsegrax
2012-02-11SCUMM: Save the new variables, move the setting of the unknown variable to ↵segrax
after the setDirection call
2012-02-11SCUMM: improve unknown variable support, add case 0xff to the animateactor ↵segrax
opcode
2012-02-11SCUMM: Change vars to ints, remove unused variable for nowsegrax
2012-02-11SCUMM: Fix actor behind man-eating plant issue in v0.Tobias Gunkel
Thanks segra for finding how it works in the original interpreter. The plant is handled specially and 0 is used instead of its y-position.
2012-02-11SCUMM: Add in support in v0 for the unknown variable to o_animateActorsegrax
2012-02-11SCUMM: Fix meteor actor indexTobias Gunkel
- Now the correct actor name is shown with "give ... to meteor". Formerly the name was "". - Add actor names that do not have a string assigned
2012-02-11SCUMM: Fix sound playback if fast-mode is onTobias Gunkel
Sounds are played that fast in fast-mode that the queue gets stuck. This is just a workaround and only fixes the symptoms. Check the queue handling for a correct fix.
2011-09-08SCUMM: Made some static data const.Johannes Schickel
2011-06-20ALL: Remove trailing whitespacesMax Horn
This tries to make our code a bit more compliant with our code formatting conventions. For future use, this is the command I used: git ls-files "*.cpp" "*.h" | xargs sed -i -e 's/[ \t]*$//'
2011-05-25ALL: behaviour -> behaviorMatthew Hoops
2011-05-14SCUMM: Workaround bug #1463598 (INDY3VGA: giant Henry Jones sr.)Max Horn
2011-05-12GIT: Clean up: Suppress SVN tags, now uselessstrangerke
2011-04-12COMMON: Replace MKID_BE by MKTAGMax Horn
MKID_BE relied on unspecified behavior of the C++ compiler, and as such was always a bit unsafe. The new MKTAG macro is slightly less elegant, but does no longer depend on the behavior of the compiler. Inspired by FFmpeg, which has an almost identical macro.
2011-04-05SCUMM: Move ActorHE into its own header, move some HE specific stuff out of ↵Max Horn
scumm.h
2011-03-19SCUMM: Changed usage of PI to M_PI (normally defined in math.h)md5
2010-12-28SCUMM: Correct fix for bug #3145951 - DIG: Subtitles won't turn off ↵Travis Howell
(regression). svn-id: r55053
2010-10-26SCUMM: Add alternative version of patch #3094717 - MMC64: save actor state.Travis Howell
svn-id: r53842
2010-10-25SCUMM: Add patch #3094711 - MMC64: Correct position of plant actor.Travis Howell
svn-id: r53814
2010-10-25SCUMM: Add patch #3093541 - MMC64: Actor Walk / Object Fix.Travis Howell
svn-id: r53806
2010-10-25SCUMM: Add patch #3093051 - MMC64: Ladder facing patch.Travis Howell
svn-id: r53799