Commit Graph

2232 Commits

Author SHA1 Message Date
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
Paul Gilbert
2d25ce2e5a TITANIC: Stop final piano note of music room music getting cut off 2017-10-14 21:59:20 -04:00
Paul Gilbert
23a6533c95 TITANIC: Properly flag audio buffer as finished when song is done 2017-10-14 21:31:35 -04:00
Paul Gilbert
55947e8ae8 TITANIC: Fix rotating on Top of Well balcony 2017-10-13 21:23:24 -04:00
Paul Gilbert
9ac71ca892 TITANIC: Show busy cursor when SuccUBus sending or receiving 2017-10-13 20:59:23 -04:00
Paul Gilbert
75a736bbc8 TITANIC: Workaround for wrong ambient music on load 2017-10-13 19:54:01 -04:00
Paul Gilbert
c339e3261d TITANIC: Renamed GlobalSound methods to AmbientSound 2017-10-13 18:03:30 -04:00
Paul Gilbert
1d8ccbe1ea TITANIC: Cleanup of auto music player classes and messages 2017-10-13 17:51:49 -04:00
Paul Gilbert
44aaaf43b8 TITANIC: Play Pellerator sound only when moving to a new destination 2017-10-12 21:58:34 -04:00
Paul Gilbert
b2ebaf008e TITANIC: DE: Fix showing accented characters in Chat tab 2017-10-12 21:38:20 -04:00
Paul Gilbert
60eca29f3d TITANIC: DE: Fix saying 'ja' to Deskbot during checkin 2017-10-12 20:05:24 -04:00
Paul Gilbert
0fd4e80cb2 TITANIC: Fix buffer overflow in parser searchAndReplace 2017-10-10 19:50:35 -04:00