Commit Graph
54649 Commits
Author SHA1 Message Date
Paul Gilbert 5645d63acd XEEN: Standardize on a single SPELLS_PER_CLASS define
There was previous confusion because characters can have a maximum of
39 spells for their class. But the spell list for each class has
40 entries, of which the last one, #39, is always the 'No Spell' value
2018-03-19 18:33:47 -04:00
Adrian Frühwirth ef593ed8e3 TUCKER: Work around original game bug when using the map in the mall in part three
If you don't have the appointment card yet and use the map to go to
Seedy Street Bud ends up being teleported back to the mall.
Because of the destination coordinates which warp Bud past x==583
Violet's logic, which makes him refuse Bud entrance to the dentist,
triggers. On top of that the graphics end up all garbled which
indicates that even worse things happen under the hood.
To work around this we only trigger Violet if Bud actually _walked_
past the trigger coordinates (as opposed to using the map).

This fixes Trac#10452.
2018-03-19 23:31:19 +01:00
Adrian Frühwirth d2ae21624e TUCKER: Implement workaround for original script bug mentioned in commit 23fd97c99a 2018-03-19 21:36:13 +01:00
Eugene Sandulenko 98620a45c4 BLADERUNNER: Fix bug with path generator in GenericWalkerA actor 2018-03-19 19:51:11 +01:00
Eugene Sandulenko bf798bdf80 BLADERUNNER: Mark a bug in original code 2018-03-19 19:40:27 +01:00
Torbjörn Andersson 5e94e8ab42 TITANIC: Fix small memory leak 2018-03-19 07:33:23 +01:00
Paul Gilbert f30e96f18e XEEN: Fix crash on Cast Spell dialog for non-spell casters 2018-03-18 22:30:30 -04:00
Paul Gilbert afeeb76076 XEEN: Fix glitched border of Identify Monster dialog 2018-03-18 22:14:52 -04:00
Paul Gilbert 6a61468d0a XEEN: Fix Town Portal town selection dialog 2018-03-18 22:05:05 -04:00
Paul Gilbert d848c9a414 XEEN: Don't show a 'None Ready' spell in spell selection dialog 2018-03-18 21:56:26 -04:00
Paul Gilbert c1b094bba8 XEEN: Fix spells list selection for Vertigo guild 2018-03-18 21:29:51 -04:00
Paul Gilbert 500ed10658 XEEN: Add an enum SpellsCategory enum, code simplification using it 2018-03-18 20:02:45 -04:00
Adrian Frühwirth 23fd97c99a TUCKER: Actually implement mof opcode
When the 'mof' opcode was added in commit 1946dead77 it was implemented
as a NOOP, but what it actually should do is disable the mouse (set
_cursorState to kCursorStateDisabledHidden).
This is used in at least the Spanish and Polish versions of the game to
work around an earlier script bug which allowed the player to use the
mouse while freeing the professor in part two.

This commit fixes the 'mof' instruction so that the original script works
as intended in those versions that ship with the fix.

TODO: Add a workaround for those game versions which don't do the 'mof'
themselves.
2018-03-18 23:38:52 +01:00
Paul Gilbert 99f5b3cfb2 XEEN: Fix display of Spell Info dialog in Guild shops 2018-03-18 18:05:35 -04:00
Adrian Frühwirth 91ec2a0c38 TUCKER: Add missing buv and c0v opcodes
This commit adds the 'buv' and 'c0v' opcodes which are used to set speech
volume. Because these only seem to be used once in the English demo and
we right now playback all speech at kMaxSoundVolume anyway we can treat
them as NOOPs.

This fixes a bug in said demo which resulted in Bud being unable to talk
to Del.
2018-03-18 22:16:33 +01:00
Thomas Fach-Pedersen 5f5cee2be3 BLADERUNNER: Round coordinates to two decimals
Also fixes a couple of typos.
2018-03-18 20:36:11 +01:00
Paul Gilbert 21a0045828 XEEN: Fix display of Spells list dialog within Guild shops 2018-03-18 14:35:22 -04:00
Paul Gilbert b0bb560138 XEEN: Properly write party character data when saving the game 2018-03-18 14:33:03 -04:00
Eugene Sandulenko 4dd0713fdd BLADERUNNER: Added FreeSlotB actor 2018-03-18 16:53:45 +01:00
Eugene Sandulenko acdb8d055c BLADERUNNER: Added FreeSlotA actor 2018-03-18 16:53:45 +01:00
Paul Gilbert 16a1d637b5 XEEN: Fix Guild membership check 2018-03-17 21:09:21 -04:00
Paul Gilbert 7f76795af6 XEEN: Fix using pyramid to travel to the Dark Side 2018-03-17 21:01:08 -04:00
Paul Gilbert 22456b345f XEEN: Change bool _isDarkCc to int _ccNum
Originally the flag was whether the party was on the Dark Side,
but as a bool I was having to cast it to an int side/cc number in
more and more places. So now I've converted it to _ccNum, and it
can be used directly as an int
2018-03-17 20:27:42 -04:00
Paul Gilbert 562522e144 XEEN: Fix display of Lloyd's Beacon spell 2018-03-17 20:21:27 -04:00
Adrian Frühwirth 51027a02cf TUCKER: Get rid of strcpy() 2018-03-18 01:17:00 +01:00
Peter Kohaut 9e341e12c8 BLADERUNNER: Actors fixes
Removed forgotten combat development hack
Clovis clovis & fix
Grayford cleanup & fixes
Hanoi small cleanup
2018-03-18 01:07:12 +01:00
Eugene Sandulenko e91c5f3dd3 BLADERUNNER: Added Hanoi actor 2018-03-17 23:39:22 +01:00
Paul Gilbert 46dc048c38 XEEN: Fix damaging characters from poisoned well 2018-03-17 18:35:21 -04:00
Eugene Sandulenko 92e3abc66f BLADERUNNER: Added OfficerGrayford actor 2018-03-17 22:13:14 +01:00
Adrian Frühwirth c4dfa57e6f TUCKER: Add comment about earlier commit e018efbc22 fixing Trac#6645 2018-03-17 21:18:46 +01:00
Adrian Frühwirth 578f9d2e5c TUCKER: Fix incorrect transition of Lola animation
The original game unconditionally reads into _sprC02Table[] in
updateSprite() which results in out-of-bounds reads when a sprite's
_state is -1. To make sure that sprites update correctly under all
circumstances we always reset a sprite's animation data when it is
disabled (_state == -1). This most prominently fixes a bug where
Lola's transition from dancing -> sitting happens too late.

Fixes Trac#6644.
2018-03-17 21:00:33 +01:00
Paul Gilbert b7f7159f8f XEEN: Fix incorrect showing of 'you are tired' dialogs after loading savegame from launcher 2018-03-17 15:30:49 -04:00
Paul Gilbert 9ef97cd265 TITANIC: Fix DoorbotScript _stateIndex cycling check
Thanks to eriktorbjorn for pointing out the Coverity warning
2018-03-17 14:06:26 -04:00
Peter Kohaut 5b50bad5e9 BLADERUNNER: Fixed compilation warnings 2018-03-17 17:07:51 +01:00
Peter Kohaut 19d9e4cec8 BLADERUNNER: Added combat
Math cleanup
Fixed obstacle detection
2018-03-17 16:42:25 +01:00
Eugene Sandulenko 41a35c736b BLADERUNNER: Added Hasan actor 2018-03-17 13:48:52 +01:00
Eugene Sandulenko 8b5335869d BLADERUNNER: Added EarlyQ actor 2018-03-17 13:23:15 +01:00
Paul Gilbert 902c984cf5 XEEN: Fix crash setting up combat speed table for new games 2018-03-17 07:12:01 -04:00
Paul Gilbert 637dedeb9a XEEN: Fixes to death cutscene 2018-03-17 07:10:41 -04:00
Paul Gilbert ac98281d9d XEEN: Don't let traps trigger more than once 2018-03-17 07:10:41 -04:00
Eugene Sandulenko b7e8fff99e BLADERUNNER: Added BulletBob actor 2018-03-17 11:27:08 +01:00
Eugene Sandulenko 37c2824382 BLADERUNNER: Added Luther actor 2018-03-17 11:27:08 +01:00
Paul Gilbert 082def7ccd XEEN: Go to menu rather than intro title when game is exitted 2018-03-16 21:41:19 -04:00
Paul Gilbert ba6db41a26 XEEN: Fix Can't Equip message having items in reverse 2018-03-16 21:16:42 -04:00
Paul Gilbert 9c4d3be5e9 XEEN: Bought weapons shouldn't be equipped by default 2018-03-16 21:13:35 -04:00
Paul Gilbert 91e714964e XEEN: Refactor item selection dialog into it's own dialog class 2018-03-16 21:05:40 -04:00
Paul Gilbert fe80dcb4fe XEEN: Don't add monsters in setSpeedTable if they're dead
I think this should fix a crash I rarely got in doMonsterTurn
2018-03-16 20:23:22 -04:00
Eugene Sandulenko 26782415df BLADERUNNER: Added Sadik actor 2018-03-17 00:29:28 +01:00
Daniel Wolf 999cf71dcf SCI: Add game option for enabling/disabling LarryScale in LSL7
All other SCI games continue using the default scaler.
2018-03-16 22:33:06 +01:00
Daniel Wolf f8c32b07e7 SCI: Use LarryScale cel scaler instead of nearest-neighbor 2018-03-16 22:33:06 +01:00