51143 Commits

Author SHA1 Message Date
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
David Fioramonti
524855d173 TITANIC: Change variable for tracking stars marked into enum 2017-08-18 04:54:27 -07: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
Paul Gilbert
6c667a013d TITANIC: Renamings for Broken Pellerator fields 2017-08-16 20:18:55 -04:00
David Fioramonti
5ebc972c25 TITANIC: Change fpose Yaxis rotation to be same as wikipedia
Add negatives to star camera turning rotations so view turns correctly
when no stars are marked and 1 star is marked.
2017-08-16 05:13:08 -07:00
Paul Gilbert
7376458137 TITANI: Fix auto-showing Call button outside music room Pellerator 2017-08-15 22:21:12 -04:00
Paul Gilbert
83cd778062 TITANIC: Fix too short animations in Pellerator journeys 2017-08-15 22:00:05 -04:00
Paul Gilbert
2bf19f8ece TITANIC: Fix too long animation in Pellerator journeys 2017-08-15 21:55:52 -04:00
Paul Gilbert
f935d79960 TITANIC: Cleanup of DAffine, removal of unused static 2017-08-15 21:32:25 -04:00
Paul Gilbert
66024fdd2b Merge pull request #991 from dafioram/daffine_refactor
TITANIC: DAffine refactor
2017-08-15 21:28:46 -04:00
Paul Gilbert
867a37618b TITANIC: Further cleanup of FMatrix refactorings 2017-08-15 21:26:17 -04:00
Paul Gilbert
736407d7da Merge pull request #990 from dafioram/fmatrix_refactor
TITANIC: FMatrix refactoring
2017-08-15 21:22:29 -04:00
Paul Gilbert
48d6ca6a3b TITANIC: Workaround longer Pellerator times after loading savegames 2017-08-15 21:18:07 -04:00
Paul Gilbert
ede1cbc4ca TITANIC: Removed dead code from CParrot::ActMsg 2017-08-15 19:42:41 -04:00
David Fioramonti
781c679c7f TITANIC: daffine refactor, changed Yaxis rotation convention
The X and Z rotation already follow the convention given in wikipedia,
but the Y axis rotation doesn't (its the negative angle) so I switched
that and updated where that was used.

This allowed stray negatives for angle calls to this function (for Y
rotations) to be removed from other parts of the code (dvector).

In theory this was a non-functional change. In dvector the code was taking
the negative of the angle so it was essentially doing the negative of the
negative, but when it was used once in star_camera it was not
(when it should of been). So That was changed. That part of the code
was used for locking onto the third star after the 2nd was already locked.

I can't tell if the star control puzzle has improved after this change.
It can still have issues locking onto the 2nd star and also not.

Also added lots of todos for things to check.
2017-08-15 15:02:02 -07:00
David Fioramonti
e9ab6fcead TITANIC: fmatrix refactor, matrix product now non-member function
The matrix product doesn't change anything about the class so it
doesn't need to be a member function.

This way other functions can do multiplication of matrices.
2017-08-15 14:49:00 -07:00
David Fioramonti
40b09ffd54 TITANIC: fmatrix refactor, common code for matrix product
Changed the left and right matrix product to use the matrix
product function with the matrix order reversed.
2017-08-15 14:44:08 -07:00
David Fioramonti
4bd42373ce TITANIC: star control, fmatrix refactoring
renamed fn2->MatRProd and fn3->MatLProd.
They do post (R) and pre (L) multiplication.
2017-08-15 14:41:48 -07:00
Eugene Sandulenko
e8d27c782e WAGE: Sorted all detection entries to dictionary sort 2017-08-15 21:20:28 +01:00
Eugene Sandulenko
16739d386e WAGE: Increased md5 sum size to 2MB and recalculated all checksums 2017-08-15 21:16:05 +01:00
Eugene Sandulenko
7313de59b6 WAGE: Use new MacTextWindow API for selection cut/clear
This enables multiline selection cutting and clearing.
2017-08-15 19:51:33 +02:00
David Fioramonti
8eb7bf3807 TITANIC: daffine refactor, call clear before setting rot matrix
The previous code wasn't reseting all the other elements to zero
when setting up a rotation matrix. This would of left other values
in the not set elements leading to a matrix not quite what the caller
wanted. This should lead to the function getFrameTransform returning
a different Daffine matrix.

Also added lots of todos
2017-08-15 04:46:43 -07:00
David Fioramonti
0f600dc21a TITANIC: daffine refactoring, non-functional changes
Made default constructor col4 construction explicit.
Change amount argument to be angle_deg. Added constant
from dvector that does conversion from degrees to radians".

Also moved conversion constants for angles in dvector to
header file so daffine could use that.
2017-08-15 04:11:59 -07:00
Simei Yin
5eda2befbb SLUDGE: Add debug channel 2017-08-15 07:47:56 +02:00
Simei Yin
302a14677d SLUDGE: Fix sprite darkness bug and refactor 2017-08-15 07:47:56 +02:00
Paul Gilbert
37863e5a75 TITANIC: Stop showing lift 4 floor on SGT TV after getting eye 2017-08-14 21:26:37 -04:00
Paul Gilbert
7fa2722372 TITANIC: Don't allow Titania to activate if you remove parts after adding 2017-08-14 20:14:37 -04:00
Eugene Sandulenko
970e4b2e8a WAGE: Add detecton for Mormonoids from the Deep 2017-08-14 23:28:12 +02:00
Eugene Sandulenko
c462fe9ee7 WAGE: Add detection for "James Bond 007" 2017-08-14 23:28:12 +02:00
Torbjörn Andersson
d99596d477 MOHAWK: Update transition mode after loading savegame 2017-08-14 17:35:32 +02:00