Commit Graph
86814 Commits
Author SHA1 Message Date
Eugene Sandulenko 2689373049 JANITORIAL: Fix spelling error in comment 2017-08-21 10:47:10 +02:00
Simei Yin cae614a4dc SLUDGE: Use common hashmap instead of array table 2017-08-21 10:19:19 +02:00
Simei Yin 516c24e8c3 SLUDGE: Change game file to be loaded 2017-08-21 10:19:19 +02:00
Simei Yin a9ee51d6ce SLUDGE: Some code cleaning 2017-08-21 10:19:19 +02:00
Simei Yin d9a6791500 SLUDGE: Add support for some windows-only games 2017-08-21 10:19:19 +02:00
David Fioramonti 2a96a6fc72 TITANIC: Prevent 2 star locking for large distances
I have added a conditional to the code so that if the player
tries to lock onto the 2nd star and they are very far away, >1e8,
then the game will not allow the star to be locked.

This is a temporary workaround since if a distance of farther
then this is attempted then the view will be throw way off
and the stars will not be shown locking onto correctly.

I've also made the locking functions return booleans so I can
determine the success of the lockings.

This is a partial fix for #9961.
2017-08-20 20:25:31 -07:00
Paul Gilbert 2edd59d0b8 TITANIC: Fix Tab key toggle for Starfield/Photo being broken 2017-08-20 22:55:40 -04:00
Paul Gilbert ca05dffec5 TITANIC: Fix Coverity suggestion in CPetConversations 2017-08-20 22:37:35 -04:00
Paul Gilbert 445e12f7ca TITANIC: Add Tab key as a shortcut for switching to inventory 2017-08-20 17:23:55 -04:00
David Fioramonti ffbfdac87e TITANIC: Change ship view and position even if not moved
The code was preventing the position and view from changing
when the distance between the current and new position for
a marked auto mover was zero. This happens if you lock the
2nd or 3rd star and then unlock and relock again.

It was prevented this with asserts and if statement checks
and I removed them all.

This section of code isn't doing any inverses based on the
reciprocal of the distance so theres no issue with allowing
transition speeds/distances of zero.

Fixes #10148.
2017-08-20 13:24:37 -07:00
Paul Gilbert 05f668ab34 TITANIC: Properly reset Parrot flag if you look away while he's eating 2017-08-20 16:05:41 -04:00
Paul Gilbert cd9fe5c219 TITANIC: Further camera and crosshair classes cleanup 2017-08-20 14:43:00 -04:00
Paul Gilbert a32a29a80e Merge pull request #995 from dafioram/star_camera_work
TITANIC: CStarCamera Refactoring and CStarCrosshairs logic fix
2017-08-20 14:31:47 -04:00
Colin Snover 4ba87013a9 VIDEO: Support old-style stereo in VMDs
This format is used by the stereo audio VMDs in Lighthouse.
2017-08-20 11:36:26 -05:00
Colin Snover 1d844978d6 COMMON: Implement SeekableReadStream interface for MemoryReadWriteStream
This allows MemoryReadWriteStream to be passed successfully to
functions that use the SeekableReadStream type so that they can
call the `pos` method, like the DPCMStream class of the VMD
decoder.
2017-08-20 11:36:14 -05:00
Filippos Karapetis d139d65c80 SAGA: Fix the conversation panel background color in IHNM 2017-08-20 18:02:37 +03:00
Filippos Karapetis ca8785fdbf SAGA: Filter scene verbs on objects properly for IHNM. Fixes bug #9712
The original check was incorrectly disabled for IHNM in commit
ab6fb8e9c3. The check has been enabled again, with an added condition
for actors that can be used, like the jukebox in Gorrister's
2017-08-20 17:10:33 +03:00
Filippos Karapetis 06f934dc9f SAGA: Remove obsolete hack for the compact disk in Ellen's chapter
This has been added in commit 5624ba23d0 and is no longer needed.
The gem is shown correctly over the compact disk in that scene,
and the behavior is the same as the original
2017-08-20 17:10:32 +03:00
Bastien Bouclet 42c6f68f7a TITANIC: Pause the engine while the save/load dialogs are open 2017-08-20 10:17:00 +02:00
Bastien Bouclet a99891c2f3 MOHAWK: Riven: Pause the engine while the load dialog is open 2017-08-20 10:01:24 +02:00
Paul Gilbert c4f48f35c6 TITANIC: Fix flagging of mouth and vision centre inserting in Titania 2017-08-19 22:44:25 -04:00
Paul Gilbert 411abee2d0 TITANIC: Hide cursor when bridge view is showing movement sequence 2017-08-19 22:15:30 -04:00
Paul Gilbert a62d1632b5 TITANIC: Start end credits at bottom of screen, not the top 2017-08-19 21:58:43 -04:00
Paul Gilbert a21e8b9de2 TITANIC: Fix getting chicken after not picking up a previous one
When you dispense a chicken, but don't pick it up and leave, the
chicken is returned to the dispensor. But previously you couldn't
then get another chicken, though you should be able to get one.
2017-08-19 20:30:43 -04:00
David Fioramonti 312d63c3c9 TITANIC: Prevent moving for locking stars when onto of star
Originally, if you unlocked a star when you had 2 or 3 stars
locked and then relocked without changing views then the game
crashed.

This was because it was trying to transition a distance of zero
and this failed an assert (to normalize the length to be the distance).
The transition is no longer done so the crash does not happen.

Fixes #10147.
2017-08-19 08:36:02 -07:00
David Fioramonti 24bec379d5 TITANIC: Pull assert out of dvector/fvector normalization
Before the normalization function was asserting if it couldn't
normalize now the caller can determine what to do with a failed
normalization.
2017-08-19 08:36:02 -07:00
Thierry Crozat 8e31ffa232 CONFIGURE: Silence undefined-var-template warning
We get this warning a lot for the Singleton class due to the way
we instantiate its specializations. Also in case we forget the
instantiation we get a link error anyway, so the warning is not
very useful anyway.
2017-08-19 11:08:14 +02:00
David Fioramonti 82d0053f8b TITANIC: Add logic to prevent removing locked/marked stars via skymap
If you want to remove locked stars you can do so using the D key,
but previously, you could also deselect a currently locked star
via the skymap and it would crash.

It previously crashed if:

1. You had 2 stars locked on and you tried to remove the 1st
2. Had 1 locked and 1 unlocked and you tried to unlock the 1st
3. Had 2 locked and 1 unlocked and you tried to unlock any of
the other two locked stars.

Refactoring would allow quicker comprehension of the logic of
this section of code.

Fixes #10126.
2017-08-18 20:28:16 -07:00
Paul Gilbert d9d325ac6c TITANIC: Allow GMM/F7 loading in prologue before player gets the PET 2017-08-18 22:42:21 -04:00
Paul Gilbert 8308341a98 TITANIC: Fix use-after-free in TTtalker when loading savegames 2017-08-18 22:30:38 -04:00
David Fioramonti b200317306 TITANIC: Renamed functions that adds/removes stars/markers
Before it was add/remove row so the new name is more informative.
2017-08-18 18:56:12 -07:00
Paul Gilbert 8e35f77e2d TITANIC: Implement F5 & F7 Saving and Loading 2017-08-18 21:53:57 -04:00
Paul Gilbert 98e0e02387 TTTANIC: Fix bomb narration disappearing after Titania's cutscene 2017-08-18 21:05:01 -04:00
Paul Gilbert dfd8c001a4 TITANIC: Simplify sound looping by using LoopingAudioStream 2017-08-18 20:45:10 -04:00
David Fioramonti 1370b49b6a TITANIC: Simplified dependencies for classes related to star_camera
This involved removing header files and forward declaring when possible.
I also reorded the header include files to be local to gloabal.
E.x., in the class implementation the class header file
would be the first included.

This is a first pass of header reduction for star_control/ files
2017-08-18 17:26:05 -07:00
Paul Gilbert 5eff8ab961 TITANIC: Fix toggling fan speed from very fast down to slow 2017-08-18 20:22:34 -04:00
Paul Gilbert 4263b29d0a TITANIC: Fix Promenade fan sound after toggling fan speed too much 2017-08-18 20:13:56 -04:00
Eugene Sandulenko 2354c9de12 WAGE: Do not error on unprintable characters.
Makes Swamp Witch start
2017-08-18 19:13:22 +02:00
Eugene Sandulenko bedbe39087 GRAPHICS: MACGUI: Fix MacTextWindow dragging and resizing 2017-08-18 19:04:37 +02:00
David Fioramonti 524855d173 TITANIC: Change variable for tracking stars marked into enum 2017-08-18 04:54:27 -07:00
Eugene Sandulenko bc8b952d71 GRAPHICS: MACGUI: Perform sanity checks before blitting 2017-08-18 10:17:52 +02:00
Simei Yin 9ee81ad127 SLUDGE: Fix zBuffer problem when credit scrolling 2017-08-18 05:17:03 +02:00
Simei Yin cc84534871 SLUDGE: Fix load&save sound bug 2017-08-18 05:17:03 +02:00
Simei Yin 0993264ba3 SLUDGE: Play mod music 2017-08-18 05:17:03 +02:00
Paul Gilbert 38c02017f5 Merge pull request #992 from dafioram/daffine_fmatrix_work
TITANIC: Daffine and FMatrix work
2017-08-17 22:08:10 -04:00
Paul Gilbert 492169606b TITANIC: Fix talking to Parrot 2017-08-17 21:45:04 -04:00
Paul Gilbert 16faf2dd34 TITANIC: Have Parrot return after Perch is placed in cage 2017-08-17 21:40:39 -04:00
Paul Gilbert ee458e557e TITANIC: Fix magazine being winnable multiple times 2017-08-17 19:57:42 -04:00
Paul Gilbert 7b0db9e1ec TITANIC: Fix taking hose from Frozen Broken Pellerator 2017-08-17 07:56:23 -04:00
Ben Castricum ae8f6397eb SCUMM: Prevent darkenPallete() in Room 0 in FT, fixes bug #9871 2017-08-17 09:47:03 +01:00