309 Commits

Author SHA1 Message Date
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
Paul Gilbert
18f5ef8234 Disabled an old script interpreter hack
svn-id: r41099
2009-06-01 10:17:34 +00:00
Paul Gilbert
b81270fbc0 Removed some out of date TODO's
svn-id: r41098
2009-06-01 09:18:48 +00:00
Paul Gilbert
2abbcd54a4 Replaced loadShort/saveShort functions with applicable endian macros
svn-id: r41097
2009-06-01 09:09:44 +00:00
Paul Gilbert
5bb449b2bf Removed the remaining two FIXME's - my analysis of the data indicates no issues with structure packing, and all multi-byte data accesses are wrapped using loadShort/saveShort, which is endian safe
svn-id: r41096
2009-06-01 08:46:39 +00:00
Paul Gilbert
4269c3a4ea Converted the saving of perso structure data to proper endian-safe serialisation
svn-id: r41093
2009-06-01 03:27:54 +00:00
Paul Gilbert
555d4038cc Slowed down the game to match the original, and introduced the ability to alter game speed using the keypad +/- keys
svn-id: r41064
2009-05-31 11:37:21 +00:00
Paul Gilbert
f94025f482 Merged the wait for mouse press event loop into the main loop, fixing animation glitch and enabling pausing, player menu, and exiting the game when waiting for a mouse press
svn-id: r41063
2009-05-31 10:14:41 +00:00
Torbjörn Andersson
0999534749 The error() and warning() functions add ! and newline automatically. (I didn't
look at debug() and debugC(), since I'm really bored with this now. :-)

svn-id: r41061
2009-05-31 10:02:16 +00:00
Paul Gilbert
a6abd5c2fc Bugfix to keep ScummVM responsive even when the displayOn variable is set to false
svn-id: r41017
2009-05-30 05:16:35 +00:00
Max Horn
fb79b18571 Changed SaveFileManager methods to take Common::String params (instead of char pointers)
svn-id: r41000
2009-05-29 14:38:22 +00:00
Paul Gilbert
b2751ff506 Reduced the word spacing width by one pixel to precisely match the original game
svn-id: r40987
2009-05-29 12:04:13 +00:00
Paul Gilbert
1b5a9504dc Bugfix for rendering text that caused corruption when the width was an odd number and a line was completely filled
svn-id: r40985
2009-05-29 11:47:32 +00:00
Paul Gilbert
682d95ff59 Bugfix for screen redrawing when waiting for mouse click - this fixes a blank screen at 3:00pm
svn-id: r40981
2009-05-29 10:52:34 +00:00
Paul Gilbert
2ae183a483 Fix for pathfinding bug that could occasionally stop the player from moving
svn-id: r40960
2009-05-28 12:16:23 +00:00