2243 Commits

Author SHA1 Message Date
Paul Gilbert
f435a1592c TITANIC: Rename CCStarCamera class to CCamera 2020-01-12 17:17:10 -08:00
Paul Gilbert
2bdc93cb11 TITANIC: Properly implement and hookup constellation map
The original also had a cool sphere showing stick-line constellations,
but it wasn't ever shown. This fixes the display and adds c as a
toggle for it when viewing the starmap
2020-01-12 14:26:17 -08:00
Paul Gilbert
2925cfd032 TITANIC: Properly implement and hookup the CConstBoundaries
The original had a pretty cool patchwork boundary area sphere
display option for the starmap puzzle, but didn't actually hook
it up. I've now bound it to the B key, and fixed bugs in it's display
2020-01-12 13:21:09 -08:00
Paul Gilbert
bd6e14193d TITANIC: Cleanup of CStarField 2020-01-12 13:21:09 -08:00
Paul Gilbert
e33716e11d TITANIC: Finally re-enable randomized initial view for star control 2020-01-11 20:47:25 -08:00
Paul Gilbert
75739abe01 TITANIC: Cleanup of CStarView 2020-01-11 20:47:25 -08:00
Paul Gilbert
e580ff30a9 TITANIC: Clarifying the StarAction enum and called methods 2020-01-11 20:47:25 -08:00
Cameron Cawley
46056aba3c ENGINES: Reduce winexe_*.h header includes 2020-01-11 17:34:12 +02:00
D G Turner
c2149c042e TITANIC: Fix Missing Default Switch Cases
These are flagged by GCC if -Wswitch-default is enabled.
2019-11-30 23:50:44 +00:00
Bastien Bouclet
4b42112721 ENGINES: Add an engine ID to all the engines 2019-11-03 11:43:00 +01:00
Henrik "Henke37" Andersson
d7a9080b42 TITANIC: This game doesn't use MIDI, mark it as such. 2019-09-29 19:34:16 +03:00
Paul Gilbert
536ae27e1c TITANIC: Fix gcc compiler warnings 2019-07-25 19:27:21 -07:00
Filippos Karapetis
a5614eeaac TITANIC: Change add float suffixes to float assignments 2019-05-27 14:53:45 +03:00
Bastien Bouclet
0d5d04ca3a IMAGE: Allow setting the output pixel format to the JPEG decoder 2019-04-28 07:59:14 +02:00
Paul Gilbert
a3873e7e4b TITANIC: Fix crash asking Parrot who sabotaged the ship 2019-03-03 11:24:39 -08:00
Paul Gilbert
dd6794095b TITANIC: Fix some incorrect switch fall throughs 2019-01-07 18:48:57 -08:00
Filippos Karapetis
424e71cfdc TITANIC: Silence an MSVC false positive about an uninitialized variable 2018-12-23 20:44:28 +02:00
Cameron Cawley
f6015086e1 ENGINES: Add GUIErrorMessageFormat to replace duplicated functions (#1455) 2018-12-19 08:31:26 +02:00
Bastien Bouclet
9a4c0ae281 ENGINES: Normalize the getName() result of metaengines
Also-By: Matthew Hoops <clone2727@gmail.com>
2018-12-10 06:47:27 +01:00
Paul Gilbert
5d77ade10b TITANIC: Fix infinite Barbot animation loop after loading savegame 2018-09-07 21:04:04 -07:00
Paul Gilbert
11e33ba3fc JANITORIAL: Removing trailing spaces after int casts 2018-08-17 20:30:20 -07:00
Paul Gilbert
b04fe74f83 TITANIC: Fix endless busy cursor in Titania close up 2018-07-14 18:25:58 -07:00
Paul Gilbert
0094b4225c TITANIC: More properly handle parser clearing after sentence processing
The original actually freed the parser entirely from within findFrames,
and then recreated it each time a sentence is parsed. Since this is
nasty, and in ScummVM _parser isn't dynamically created, I settled on
adding a clear command to completely clear the parser instead.
2018-07-14 16:25:14 -07:00
Paul Gilbert
d39d4b9d4b TITANIC: Remove any unfreed parser nodes at the end of sentence parsing
This fixes cases like bug #10621, which are somehow resulting from not
all parser nodes being properly freed after parsing the first sentence
finishes
2018-07-14 13:51:06 -07:00
David Fioramonti
fb3dcb9ee0 TITANIC: Use degree conversion common math funcs
I tested the star puzzle and it is still good.
2018-07-03 23:08:48 +01:00
David Fioramonti
771be9e3a9 TITANIC: Address readSavegameHeader compiler warning
A function had a bool return that was not being used
now it is checked and an error is issued if the call fails.
2018-06-30 14:30:35 -07:00
Adrian Frühwirth
cee4d6b853 JANITORIAL: Fix trailing whitespace 2018-05-24 15:30:55 +02:00
Adrian Frühwirth
bc949250de JANITORIAL: Convert line endings from CRLF/mixed to LF 2018-05-24 15:30:55 +02:00
Adrian Frühwirth
c7f3416daa JANITORIAL: Remove trailing whitespace 2018-05-20 23:40:20 +02:00
Adrian Frühwirth
8885b37abb TITANIC: Enforce code formatting guidelines 2018-05-07 20:06:29 +02:00
Paul Gilbert
db1c506ee5 TITANIC: Hopefully fix Release mode crash when selecting floors manually 2018-05-02 21:54:24 -04:00
Adrian Frühwirth
10abb0c646 TITANIC: Fix discrepancy between readSavegameHeader() declaration and definition
This should have been part of commit 00e59a3122.
2018-04-22 22:45:54 +02:00
Adrian Frühwirth
b1b83ac954 Revert "TITANIC: Fix memory leak due to save thumbnail changes"
This was a miss in commit 00e59a3122. The new parameter was supposed
to be called skipThumbnail and default to true instead.
For consistency's sake (the rest of the tree uses skipThumbnail, not
loadThumbnail) I'm reverting this and will separately update the
declaration to how it should have been from the beginning.

Thanks dreammaster!
2018-04-22 22:42:40 +02:00
Paul Gilbert
ab3f397e2d TITANIC: Fix memory leak due to save thumbnail changes 2018-04-22 11:44:15 -04:00
Adrian Frühwirth
00e59a3122 ALL: Load savegame thumbnail only when necessary
This commit introduces the following changes:

1. Graphics::loadThumbnail()

   Now returns a boolean and takes a new argument skipThumbnail which
   defaults to false. In case of true, loadThumbnail() reads past the
   thumbnail data in the input stream instead of actually loading the
   thumbnail. This simplifies savegame handling where, up until now,
   many engines always read the whole savegame metadata (including
   the thumbnail) and then threw away the thumbnail when not needed
   (which is in almost all cases, the most common exception being
   MetaEngine::querySaveMetaInfos() which is responsible for loading
   savegame metadata for displaying it in the GUI launcher.

2. readSavegameHeader()

   Engines which already implement such a method (name varies) now take
   a new argument skipThumbnail (default: true) which is passed
   through to loadThumbnail(). This means that the default case for
   readSavegameHeader() is now _not_ loading the thumbnail from a
   savegame and just reading past it. In those cases, e.g.
   querySaveMetaInfos(), where we actually are interested in loading
   the thumbnail readSavegameHeader() needs to explicitely be called
   with skipThumbnail == false.

   Engines whose readSavegameHeader() (name varies) already takes an
   argument loadThumbnail have been adapted to have a similar
   prototype and semantics.
   I.e. readSaveHeader(in, loadThumbnail, header) now is
   readSaveHeader(in, header, skipThumbnail).

3. Error handling

   Engines which previously did not check the return value of
   readSavegameHeader() (name varies) now do so ensuring that possibly
   broken savegames (be it a broken thumbnail or something else) don't
   make it into the GUI launcher list in the first place.
2018-04-07 09:26:20 +02:00
Torbjörn Andersson
5e94e8ab42 TITANIC: Fix small memory leak 2018-03-19 07:33:23 +01: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
Paul Gilbert
aca61ca208 TITANIC: Removed unused arrays and fields 2018-03-12 18:56:25 -04:00
Paul Gilbert
fd32517490 TITANIC: DE: Fix crash after tapping on bomb window 6 times 2017-12-10 10:17:39 -05:00
Colin Snover
6c40ceded1 TITANIC: Fix compilation failure in C++11 mode 2017-11-17 22:47:59 -06:00
Paul Gilbert
5a17a96c38 TITANIC: Fix switch fall throughs 2017-11-13 07:37:07 -05:00
Paul Gilbert
87bff2dfcd TITANIC: Remove testing flag from German version 2017-11-04 11:38:19 -04:00
Paul Gilbert
ba7e50edec TITANIC: Hopefully fix AmigaOS compilation 2017-10-27 17:37:44 -04:00
Paul Gilbert
8057d888a6 TITANIC: Remove redundant room check in CEarSweetBowl 2017-10-16 20:42:00 -04:00
Paul Gilbert
11a72a5e0e TITANIC: Add missing strings for Floor & Room # to titanic.dat 2017-10-15 21:20:09 -04:00
Paul Gilbert
ff9c0a9a89 TITANIC: Fix crash exiting game when music room music is active 2017-10-15 21:14:33 -04:00
Paul Gilbert
3e52288a2d TITANIC: Music room handler field renames & better anim sync to music 2017-10-15 20:57:09 -04:00
Paul Gilbert
17606700c4 TITANIC: Fix use after free and remove IFDEF code from mouse cursors 2017-10-15 19:03:09 -05:00
Paul Gilbert
db5676fec2 TITANIC: Simplify cursors to build up as RGBA during loading 2017-10-15 19:03:09 -05:00
Paul Gilbert
8e0833e6de TITANIC: Remove accidentally committed cutscene slowdown 2017-10-14 22:17:12 -04:00