Commit Graph
137148 Commits
Author SHA1 Message Date
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 abd8c585f7 STARK: Change surface data to always be in the RGBA byte order
This eases uploading the textures to OpenGL, and will hopefully fix
endianness issues.
2017-08-20 16:06:36 +02: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
Bastien Bouclet b97e49c3ee MYST3: Change surface data to always be in the RGBA byte order
This eases uploading the textures to OpenGL, and will hopefully fix
endianness issues.
2017-08-20 09:36:31 +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
Bastien Bouclet 6aee542a1d MYST3: Cache the value of the water effect parameters
Improves the speed of the water effect update.
2017-08-19 23:11:46 +02:00
Bastien Bouclet 142b914eb5 MYST3: Fix some transitions after movies using the wrong source image
Fixes #1353.
2017-08-19 18:10:22 +02: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
Eugene Sandulenko c33637769e WAGE: Added more games to detection 2017-08-17 09:38:00 +02:00
Eugene Sandulenko 72f4a7a116 WAGE: Added more alternative game versions 2017-08-17 09:38:00 +02:00
Eugene Sandulenko adae2eee0e WAGE: Added detection for two more games 2017-08-17 09:38:00 +02:00
Eugene Sandulenko b1e036c326 WAGE: Added alternative version of Fred Rogers game 2017-08-17 09:37:59 +02:00
David Fioramonti 24354ac6a8 TITANIC: fpose, simplify inverse
Was doing 3x3 inverse now it is doing a transpose.
Also named the function.
2017-08-16 20:42:09 -07:00
David Fioramonti 09eb399c07 TITANIC: daffine simpler inverse
Replace rotation inverse with transpose.
inv(R)=tranpose(R) for rotation matrices.
2017-08-16 20:42:09 -07:00
Paul Gilbert f1e42b6af0 TITANIC: Fix hose pickup cursor when loading savegame with cover open 2017-08-16 22:21:44 -04:00
David Fioramonti fb1e9453fb TITANIC: Unmarked starviewer, fix, key directions
Changing the fpose Y axis rotations flipped some of the keys (z,x)
so I added in negatives to fix that.

Also before slash was looking up and comma was looking down.
This is the same as the original, but I think thats less
intuitive so I have reversed that. It also makes those keys
now correct in the readme.
2017-08-16 19:11:50 -07:00