Commit Graph
54649 Commits
Author SHA1 Message Date
D G Turner dd8e003602 LILLIPUT: Fix Compiler Warning About Hiding Overloaded Virtual. 2018-07-29 05:20:55 +01:00
D G Turner bdb307634f LILLIPUT: Remove Unused Engine Pointer from Sound Class.
Since this was unused, it was causing various compiler warnings of the
set-but-not-used type. If it is needed later, this code can be restored.
2018-07-29 03:56:20 +01:00
D G Turner 733cb7dcc7 CRYO: Fix Debug Statement Format String Compiler Warnings.
Some of the debug statements in the engine compute values or sizes of
various items by pointer subtraction (which is probably not recommended;
I am not sure if this is why some of the structs were previous packed as
noted and removed by snover).

In any case, the subtractions should result in relatively small integer
values, but using these into debug() calls with printf style format
strings can cause warnings from the compiler with the format specifier
depending on the underlying pointer sizes.

To avoid these, have recast these to int. If this does cause any issues,
they should be limited to debug() value changes and thus not a
functional issue with the engine, which can be corrected by the engine
developers.
2018-07-29 03:32:40 +01:00
D G Turner 275fc30f27 ACCESS: MM: Fix Compiler Variable Shadowing Warning. 2018-07-29 03:19:53 +01:00
David Fioramonti 51351111d4 MOHAWK: RIVEN: Only use x mouse position to move dome sliders
Fixes Trac#10642.

The original engine will move the dome sliders whenever the player is
dragging a dome slider to the left or right regardless of y position.

In ScummVM the dome slider position would only change to the players x
mouse position when the y value was also in the slider hotspot. This
change removes the y check by making the point to be checked always
have a y value in the hotspot rect.

The x values are also bound to the max and min value that any of the
slider hotspots can have. This allows the slider to go all the way to
the left and right even if the user has gone past the slider area
to the left or right while still holding the slider.
2018-07-27 16:16:29 +02:00
Paul Gilbert 560f10c346 XEEN: Fix Coverity warnings 2018-07-26 18:54:17 -07:00
Andrei Prykhodko 877b4e5cf3 PINK: fixed engine destroying in pda state 2018-07-26 05:24:57 +03:00
Andrei Prykhodko cdd5717ce0 PINK: fixed entering pda through menu in a row 2018-07-26 05:10:57 +03:00
Andrei Prykhodko c655e7fa54 PINK: fixed memory leak 2018-07-26 04:40:17 +03:00
Bastien Bouclet 85a603fdff MOHAWK: MYST: Don't play the flyby movies when going back to Myst 2018-07-25 20:37:27 +02:00
David Fioramonti 75587c3c66 LAB: Fix thumbnail issues
Fixes Trac#10619.

The thumbnail loading for the saved games was defaulting to
disabled so no thumbnail was being loaded and this caused trying
to show the thumbnail to crash scummvm.

So I have set the thumbnail pointer to be null if the thumbnail
doesn't get loaded and I've set the thumnail to not be skipped
so that thumbnails get shown when using the gui.
2018-07-25 10:15:32 +02:00
Eugene Sandulenko bb2f218fa1 ZVISION: Fix atan2() arguments order. CID 1394387 2018-07-23 23:46:06 +02:00
Eugene Sandulenko 5ceb3be771 ILLUSIONS: Fix copy/paste bug. CID 1394433 2018-07-23 23:27:50 +02:00
Eugene Sandulenko 6fc6ce3ac4 PINK: Rely on MacWindoManager to restore screen after menu 2018-07-23 14:47:27 +02:00
Andrei Prykhodko 1832dd0bab PINK: fixed starting new game from menu in pda state 2018-07-22 21:33:48 +03:00
Andrei Prykhodko c06e2abfb0 PINK: added menu commands 2018-07-22 21:26:09 +03:00
Bastien Bouclet 8f9daa906c Merge pull request #1257 from dafioram/mohawkRivenAutosaveCredits
MOHAWK: RIVEN: Don't allow autosaving during credits
2018-07-21 21:31:40 +02:00
Andrei Prykhodko cd87d76932 PINK: added more debug output, removed unneeded 2018-07-21 19:40:12 +03:00
David Fioramonti 3299402a23 HOHAWK: RIVEN: Don't allow autosaving after credits have finished
There is a brief period after the credits finish, but before the engine
closes that autosaving can happen.

Fixes Trac#10635.
2018-07-21 07:45:39 -07:00
Andrei Prykhodko cb3945cf4f PINK: hid debug output under channels and levels 2018-07-21 16:23:57 +03:00
Andrei Prykhodko 8a3936b321 PINK: removed unused method 2018-07-21 16:18:13 +03:00
Andrei Prykhodko 7cc0e833f2 PINK: implemented creating menu from executable 2018-07-21 15:12:23 +03:00
Eugene Sandulenko a8369132d6 MACVENTURE: Fix warning 2018-07-21 13:24:17 +02:00
David Fioramonti 45137f34df PINK: Set engine playtime to playtime in saved game
Before the playtime was starting over when ScummVM was closed and
reopened instead of starting off with the playtime in the saved game.
2018-07-21 13:15:14 +02:00
David Fioramonti 9d88afe6bf GRAPHICS: Add playtime in milliseconds to SaveStateDescriptor
This will make setting the playtime for the engine easier since
the current savestate stores it as a string.

This value gets set at the same time that the string playtime gets set.
2018-07-21 13:15:14 +02:00
Andrei Prykhodko 1b2892e921 PINK: fixed warning 2018-07-21 13:48:23 +03:00
Eugene Sandulenko e6b61c3874 ILLUSIONS: Fix warnings 2018-07-21 12:15:05 +02:00
Bastien Bouclet 1f914ea759 MOHAWK: MYST: Don't call the mouse up handler if executeMouseUp was used
Fixes Trac#10573.
2018-07-21 09:56:33 +02:00
Torbjörn Andersson 04585b60ec AGOS: Silence GCC 8 warning
Since 'filename' is 'baseName', plus a file extension, make the
'filename' buffer larger than the 'baseName' buffer. Even though
this almost certainly means that the 'filename' buffer is now
quite a bit larger than it needs to be, I don't think there's any
reason to quibble about it.
2018-07-21 09:23:06 +02:00
Paul Gilbert af6034efcd ACCESS: MM: Implement proper game data and fonts in access.dat 2018-07-20 19:05:56 -07:00
Andrei Prykhodko b6dc832346 PINK: sync with MACGUI changes 2018-07-20 22:05:46 +03:00
Eric Fry 848b5a5ff5 ILLUSIONS: Formatting fixes 2018-07-20 06:43:33 +00:00
Eric Fry baf8011b07 ILLUSIONS: Fix merge error. 2018-07-20 06:43:33 +00:00
johndoe123 565de60234 ILLUSIONS: Clean up/fix some TODOs
(cherry picked from commit 66094e4)
2018-07-20 06:43:33 +00:00
johndoe123 617e9439cf ILLUSIONS: DUCKMAN: Implement MIDI music fading
(cherry picked from commit 056b303)
2018-07-20 06:43:33 +00:00
johndoe123 aee54f4bca ILLUSIONS: Minor cleanup
(cherry picked from commit 9abaa9e)
2018-07-20 06:43:33 +00:00
johndoe123 33ece271fd ILLUSIONS: Implement cursor movement via arrow keys
(cherry picked from commit 12e33c6)
2018-07-20 06:43:33 +00:00
johndoe123 65049228a8 ILLUSIONS: Remove old TODOs
(cherry picked from commit bb95440)
2018-07-20 06:43:33 +00:00
johndoe123 1f6aee019c ILLUSIONS: BBDOU: Rename variables (bubble and special code)
(cherry picked from commit 93255ca)
2018-07-20 06:43:33 +00:00
Eric Fry 8ca26ea2a0 ILLUSIONS: Use actor flag instead of magic number 2018-07-20 06:43:33 +00:00
johndoe123 96a862536d ILLUSIONS: Implement sequence opcode 32
(cherry picked from commit 30cdb32)
2018-07-20 06:43:33 +00:00
johndoe123 38577221c0 ILLUSIONS: BBDOU: Implement savegame saving/loading from GUI and the launcher
(cherry picked from commit 42f0bd4)
2018-07-20 06:43:33 +00:00
Eric Fry 3fca484ae5 ILLUSIONS: Pan talk thread audio when using a named position 2018-07-20 06:43:33 +00:00
johndoe123 71edfa3f0a ILLUSIONS: BBDOU: Add quit opcode
(cherry picked from commit 32c2a9b)
2018-07-20 06:43:33 +00:00
johndoe123 94fdd597d9 ILLUSIONS: BBDOU: Add menu system class, adjust existing code (actual menus not done yet)
(cherry picked from commit 03b0ca1)
2018-07-20 06:43:33 +00:00
johndoe123 54dd381441 ILLUSIONS: BBDOU: Play sound in BbdouSpecialCode::playSoundEffect
(cherry picked from commit 1e822f0)
2018-07-20 06:43:33 +00:00
johndoe123 a76612ec5a ILLUSIONS: Implement voice pausing/unpausing
(cherry picked from commit a70cf1d)
2018-07-20 06:43:33 +00:00
johndoe123 4637104e6d ILLUSIONS: BBDOU: Implement missing talkthread events
(cherry picked from commit 87869cb)
2018-07-20 06:43:33 +00:00
Eric Fry b787b06156 ILLUSIONS: BBDOU: Formatting 2018-07-20 06:43:33 +00:00
johndoe123 25a303a529 ILLUSIONS: BBDOU: Implement video player
(cherry picked from commit aab0b29)
2018-07-20 06:43:33 +00:00