Robert Crossfield
67071b42bc
SCUMM: Maniac V0: Implement 'simulator' for CPU lag (as the original engine occasionally ran at less than 60Hz). Fix call to 'getClosestPtOnBox', whcih was being passed X * V12_X_MULTIPLIER and Y * V12_Y_MULTIPLIER, but the box coordinates, where not
2016-07-19 20:39:58 +10:00
Robert Crossfield
44000ba826
SCUMM: Maniac V0: Implement original walkbox queue, Cleanup actor walk code
2016-07-19 18:54:14 +10:00
Kirben
bba1af422f
SCUMM: Fix bug #3230 PAJAMA SAM 2: Background gfx glitch in intro.
2016-05-24 20:19:18 +10:00
Alexandre Detiste
6c298e964f
JANITORIAL: Typos detected with lintian & grep
2016-02-15 18:27:02 +01:00
Kirben
0a6904c4ab
SCUMM: Correct variable type in Actor_v0::adjustPosInBorderWalkbox, since variable can have negative value.
2014-12-08 23:31:59 +11:00
Kirben
801bfedfc0
Merge pull request #542 from segrax/V1-V2_WalkAnimFix
...
SCUMM V1-V2: Fix actor walk behavior (transitions between walk boxes, and changing destination issue)
2014-12-08 19:29:29 +11:00
Robert Crossfield
d92e47f4e6
SCUMM V1-V2: Fix actor walk behavior (transitions between walk boxes, and changing destination issue)
2014-12-08 13:14:12 +11:00
Robert Crossfield
d83438225e
SCUMM: Maniac V0: Add support for D64 Demo Disk, Cleanup duplicate 'Talk' array
2014-12-08 10:14:37 +11:00
Kirben
c9e6db6571
SCUMM: Correct spacing and warning in last Maniac V0 merge.
2014-12-07 15:24:21 +11:00
Robert Crossfield
814d9b1153
SCUMM: Maniac V0: Correctly handle 'slanted' walk-boxes, Add new variables to save-games, Bump the SaveGame Version number, remove obsolete V0 code in V2 functions
2014-12-02 16:25:03 +11:00
Robert Crossfield
29d46e8a10
SCUMM: Maniac V0: If boxes are neighbors, walk directly to the new box. Remove extra call to 'animateCostume'. Remove now unnecessary V0 walk calc functions
2014-11-29 09:07:10 +11:00
Robert Crossfield
2dbd99d572
SCUMM: Maniac V0: Implement the original Walk Code (to fix some anim glitches), fix opcode to use _moving correctly (as V0 is different)
2014-11-28 22:24:45 +11:00
Johannes Schickel
3847465163
SCUMM: Make GPL headers consistent in themselves.
2014-02-18 02:39:38 +01:00
Torbjörn Andersson
e81d8d8112
SCUMM: Remove unnecessary NULL check, CID 1003629
...
Since _actors[i]->_sound is an array, it can't ever be NULL.
2013-08-18 09:07:49 +02:00
Matthew Hoops
0031c41db8
COMMON: Change kPlatformPC to kPlatformDOS
...
"PC" was very ambiguous and now it matches what we show in the GUI.
This also corrects sword2's platform to Windows.
2013-05-02 18:43:10 -04:00
Johannes Schickel
89abab97e3
JANITORIAL: Remove trailing whitespaces.
...
Powered by:
git ls-files "*.cpp" "*.h" "*.m" "*.mm" | xargs sed -i -e 's/[ \t]*$//'
2012-09-26 04:17:55 +02:00
Tarek Soliman
a4798602d7
JANITORIAL: Fix missing whitespace in pointer cast
...
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-15 10:07:10 -06:00
Willem Jan Palenstijn
784472a669
Revert "SCUMM: revert savegame version to 89"
...
This reverts commit 65fc7225bb .
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-11 10:55:55 +01:00
Tobias Gunkel
65fc7225bb
SCUMM: revert savegame version to 89
...
Previous versions 89-92 are merged into version 89.
2012-02-11 08:36:38 +01:00
Tobias Gunkel
0d5b03d8da
SCUMM: remove unnecessary cast to Actor_v0
2012-02-11 08:36:37 +01:00
Tobias Gunkel
67d67ec4f6
SCUMM: replaced A with a0 to avoid upper-case local vars
2012-02-11 08:36:35 +01:00
Tobias Gunkel
4922055063
SCUMM: cleanup and separation of objIsActor()/objToActor()/actorToObj() for v0 and other engines
2012-02-11 08:36:27 +01:00
Tobias Gunkel
0aabf95cb8
SCUMM: match style-guide, add missing spaces between some "if ()", "for ()"
2012-02-11 08:30:15 +01:00
Tobias Gunkel
ef56bd6de2
SCUMM: add support for diagonal walking between boxes (e.g. used for meteor opening scene)
2012-02-11 08:30:14 +01:00
Robert Crossfield
6c40b3f36f
SCUMM: Remove old code
2012-02-11 08:30:12 +01:00
Robert Crossfield
163f698cf0
SCUMM: Few changes for animations, dont move while turning & not necessary to call animateactor during startanimactor
2012-02-11 08:30:10 +01:00
Tobias Gunkel
9dd6105ce6
SCUMM: replace "c64" with "v0" when it applies to both C64 and AppleII v0 versions
...
In addition some routines (e.g. the gfx ones) that are even used in v1.
2012-02-11 08:30:08 +01:00
Tobias Gunkel
8d3b272939
SCUMM: save complete v0 state and initialize actors correctly
2012-02-11 08:30:07 +01:00
Tobias Gunkel
5d3e1dd0dc
SCUMM: remove the temporary variable _limb_current
2012-02-11 08:30:05 +01:00
Tobias Gunkel
e14e4ab3b0
SCUMM: adjust to coding style-guide
2012-02-11 08:30:02 +01:00
Robert Crossfield
92908bfc4b
SCUMM: Fix ActorStop, V0 needs to set the stop direction
2012-02-11 08:29:57 +01:00
Tobias Gunkel
f5faa4554d
SCUMM: isPlayer() is not supported by engine v0
2012-02-11 08:29:49 +01:00
Tobias Gunkel
cc68a59856
SCUMM: fix diagonal walking in at least MM v0
...
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-11 08:29:46 +01:00
Robert Crossfield
9ba01d020b
SCUMM: Fix V0 Sound, and a direction issue (affected walking down the ladder)
2012-02-11 08:29:40 +01:00
Robert Crossfield
fb3e431ec6
SCUMM: V0 always turns actor towards camera when entering room, remove unnecessary loadcostume
2012-02-11 08:29:37 +01:00
Robert Crossfield
5accf01881
SCUMM: Remove unnecessary calls to animateActor
2012-02-11 08:29:35 +01:00
Robert Crossfield
1e8d0664ac
SCUMM: Fix Tentacle issue, and possibly some other animation issues
2012-02-11 08:29:32 +01:00
Tobias Gunkel
ddd65dfc22
SCUMM: fix actor climbing on plant or swimming pool ladder
...
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-11 08:29:30 +01:00
Tobias Gunkel
f99dab78e4
SCUMM: fix for old savegames
2012-02-11 08:29:29 +01:00
Robert Crossfield
cf292001d3
SCUMM: Animations fix again, no need for the hack now
2012-02-11 08:29:27 +01:00
Robert Crossfield
5b4b606a58
SCUMM: Remove the setCmdFromDirection function
2012-02-11 08:29:26 +01:00
Robert Crossfield
08e3866395
SCUMM: Animation Fixes
2012-02-11 08:29:24 +01:00
Robert Crossfield
65fb1f9a09
SCUMM: Fix the animation system, rename the Limb Frame Repeat variable
2012-02-11 08:29:22 +01:00
Tobias Gunkel
fd4a3501ed
SCUMM: fix saving of array _byte_FCE2
2012-02-11 08:29:11 +01:00
Tobias Gunkel
f22bbc47b4
SCUMM: fix v0 mode handling and actor switching
...
- 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-11 08:29:05 +01:00
segrax
a999aa39ba
SCUMM: Re-arrange some things to make it closer to the original
2012-02-11 08:29:02 +01:00
segrax
e331421eae
SCUMM: Save the new variables, move the setting of the unknown variable to after the setDirection call
2012-02-11 08:29:00 +01:00
segrax
e2d45467bb
SCUMM: improve unknown variable support, add case 0xff to the animateactor opcode
2012-02-11 08:28:59 +01:00
segrax
cbae5c79b7
SCUMM: Change vars to ints, remove unused variable for now
2012-02-11 08:28:51 +01:00
Tobias Gunkel
6ca91a2be5
SCUMM: Fix actor behind man-eating plant issue in v0.
...
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-11 08:28:43 +01:00