273 Commits

Author SHA1 Message Date
Joost Peters
ddd2b29bee fix another aligned write
svn-id: r42753
2009-07-25 13:07:17 +00:00
Johannes Schickel
7e71865e91 Move the event recorder to its own class (EventRecoder inside common/EventRecorder.[h/cpp]).
svn-id: r42751
2009-07-25 12:59:46 +00:00
Joost Peters
24ca40eea5 fix unaligned writes
svn-id: r42747
2009-07-25 12:28:45 +00:00
Paul Gilbert
6235f9e176 Minor tweak to prevent mouse clicks that close a user wait message also being further interpreted as a user walk destination
svn-id: r42578
2009-07-18 01:22:43 +00:00
Paul Gilbert
db81b0a185 Added an explicit break out of the event processing loop for mouse buttons and/or key-presses - this should allow stylus-based systems to properly process 'mouse down' events before the 'mouse up' is processed
svn-id: r42558
2009-07-17 05:10:24 +00:00
Paul Gilbert
324ba3703b Bugfix to cursor updates - it previously required that both X and Y positions had changed before a cursor change could occur
svn-id: r42472
2009-07-14 10:55:51 +00:00
Paul Gilbert
fb631a7f38 Bugfix for player being able to walk through some objects against room walls
svn-id: r42471
2009-07-14 10:26:56 +00:00
Paul Gilbert
f278432144 Added support for sub-relation message types - this fixes trying to attach the chain to the hook on the deck
svn-id: r42405
2009-07-12 07:23:50 +00:00
Paul Gilbert
2c96ca84f3 Added initialisation of paging screens when the game starts
svn-id: r42370
2009-07-11 05:14:42 +00:00
Paul Gilbert
99d81ac2ed Active background screens are now properly freed when the game exits
svn-id: r42369
2009-07-11 05:12:17 +00:00
Paul Gilbert
dd9b6fffff Bugfix to show the mouse cursor when restarting the game after returning to launcher
svn-id: r42368
2009-07-11 05:10:13 +00:00
Paul Gilbert
b50b5ae5a4 Removed the shooting workaround delay - the overlay number can vary, so it isn't a reliable way of identifying the specific message
svn-id: r42205
2009-07-07 07:41:02 +00:00
Paul Gilbert
3dd21aa218 Fix to the return values of the Op_GetMouseButton library function now allows the game's "Fisticuffs path" to work properly
svn-id: r42199
2009-07-07 06:23:09 +00:00
Paul Gilbert
7cc82cfea1 Added workaround to briefly pause when displaying the first message of the shooting cut-scene, so it can be read properly
svn-id: r42198
2009-07-07 02:51:42 +00:00
Paul Gilbert
5270c82523 Bugfix so that user delays work correctly
svn-id: r42197
2009-07-07 02:49:33 +00:00
Paul Gilbert
7f7edabbdd Bugfix so the game speed will correctly change after showing the credits when the game is restarted
svn-id: r42196
2009-07-07 01:14:55 +00:00
Paul Gilbert
3abc1e8375 Removed all the current special cases coding for user (mouse press) waiting, and reimplemented it exactly the way the original did
svn-id: r42173
2009-07-06 12:33:05 +00:00
Paul Gilbert
08df8dc272 Bugfix for node enabling/disabling, which was previously allowing the player to walk through closed doors and into the walls
svn-id: r42162
2009-07-06 02:46:59 +00:00
Paul Gilbert
48d164a498 Bugfix for word-wrapping of text, which sometimes failed for strings with special characters
svn-id: r42115
2009-07-05 07:21:17 +00:00
Paul Gilbert
d81bbae875 Bugfix for displaying text messages when an auto tracking (cut-scene) changes to a user wait
svn-id: r42048
2009-07-03 06:21:04 +00:00
Paul Gilbert
3190bf68f2 Bugfix for loading savegames where the active resource file database isn't completely filled
svn-id: r42047
2009-07-03 06:19:20 +00:00
Max Horn
a6b57dc3a9 - Added GCC_PRINTF attribute to several funcs where it makes sense
- change some constants from double to float, to avoid "loss of precision due to implicit conversion" warnings
- removed duplicate prototypes for some funcs
- fixed some "increases required alignment of target type" warnings

svn-id: r42009
2009-07-01 20:51:04 +00:00
Paul Gilbert
f9298ff403 Made the music/sfx volume settings actually affect the in-game music/sfx volume
svn-id: r41975
2009-06-30 10:36:50 +00:00
Johannes Schickel
6c049f6b29 Silence unsued variables warnings.
svn-id: r41827
2009-06-24 17:01:01 +00:00
Paul Gilbert
510700b086 Bugfixes to keep sound effects to channel #4 like the original (it ignores the channel parameter to the given library routine)
svn-id: r41787
2009-06-23 01:01:16 +00:00
Paul Gilbert
4f631e9a89 Removed redundant variation of the routine to play sound effects
svn-id: r41763
2009-06-22 10:41:32 +00:00
Paul Gilbert
640f322194 Added the dummy volume variable to the savegame format
svn-id: r41749
2009-06-22 06:35:08 +00:00
Paul Gilbert
8dfbd0f845 Implemented the Op_SetVolume method like the original, which simply set a dummy variable and never actually changed the volume
svn-id: r41748
2009-06-22 06:17:50 +00:00
Paul Gilbert
b14fa66f9f Minor fixes to the individual note playing code
svn-id: r41726
2009-06-21 11:53:11 +00:00
Paul Gilbert
31f40cd47e Changed .SPL (sound effect) loading to load the Adlib version of sound effects - sound effects now work
svn-id: r41725
2009-06-21 11:42:45 +00:00
Paul Gilbert
382af0407f Bugfixes to pre-loading and handling of resources such as sound files
svn-id: r41724
2009-06-21 05:13:29 +00:00
Paul Gilbert
6cc4140cf4 Changed many file reads and manual conversions from endian format to instead use file readSint16BE/readSint32BE calls
svn-id: r41709
2009-06-20 12:02:08 +00:00
Paul Gilbert
31ace2c66c Implemented the library function Op_SongExist
svn-id: r41703
2009-06-20 08:15:39 +00:00
Paul Gilbert
4f622ab295 Added proper saving of music state to savegames so music resumes when a savegame is loaded.
svn-id: r41702
2009-06-20 08:15:01 +00:00
Paul Gilbert
61f20f4d88 Bugfix to fade out any currently playing music when the game is restarted
svn-id: r41701
2009-06-20 07:36:12 +00:00
Paul Gilbert
8cda2728eb Finally tracked down the difference/bug in the music playing code - music playback now works
svn-id: r41700
2009-06-20 06:48:47 +00:00
Paul Gilbert
9651257a3e Removed redundant code that isn't used
svn-id: r41630
2009-06-18 11:37:45 +00:00
Johannes Schickel
5f5faf71c5 Fix unused variable warning.
svn-id: r41507
2009-06-14 11:08:35 +00:00
Paul Gilbert
2f3e5f11cb Beginnings of music support for Cruise, based on the cine engine sound code (note that the music played isn't yet correct, though)
svn-id: r41506
2009-06-14 03:39:30 +00:00
Paul Gilbert
e487347921 Added support for loading savegames from the launcher
svn-id: r41424
2009-06-10 12:16:30 +00:00
Paul Gilbert
f2c1b18242 Added variable to savegame format so that savegames can be correctly loaded from the ScummVM launcher
svn-id: r41423
2009-06-10 12:15:50 +00:00
Eugene Sandulenko
1bd6f6c99f Added game GUI options to advancedDetector and updated all engines
svn-id: r41272
2009-06-06 17:56:41 +00:00
Paul Gilbert
93375bddf0 Disabled the execution of scripts when doing a user wait - this prevents animated backgrounds from jerking to new positions once the mouse has been pressed
svn-id: r41210
2009-06-06 01:39:08 +00:00
Paul Gilbert
3739d82f62 Bugfix to show the title screen at the correct speed when restarting the game
svn-id: r41208
2009-06-06 01:00:44 +00:00
Paul Gilbert
95a4ea15b5 Bugfix for display when multiple user waits follow each other
svn-id: r41207
2009-06-06 00:53:08 +00:00
Paul Gilbert
862d1cf42b Tweaks to the code that pauses for a mouse press when displaying many text messages
svn-id: r41196
2009-06-05 12:20:42 +00:00
Joost Peters
5f7515162a Capitalize the C in Corpse
svn-id: r41110
2009-06-01 20:55:31 +00:00
Joost Peters
ce1c5e2c0b change pathfinding variables from char to int8 to ensure signedness
svn-id: r41109
2009-06-01 20:53:19 +00:00
Joost Peters
c7d181d107 don't use FROM_LE_* macros on font data, as it already is in native endianness
svn-id: r41108
2009-06-01 19:53:11 +00:00
Joost Peters
12837c968c Change flip[Short|Long] functions to bigEndian[Short|Long]ToNative to clarify that flipping only occurs on LE systems + some related cleanup.
svn-id: r41107
2009-06-01 19:29:04 +00:00