290 Commits

Author SHA1 Message Date
Paul Gilbert
1f39c1b569 Bugfix for freeze when the in-game Pause 'P' key is used
svn-id: r43690
2009-08-24 10:23:22 +00:00
Paul Gilbert
de2e283492 Added code to launch the GMM save/load dialogues from the in-game Player menu, replacing the older code that just saved/loaded the game in a single slot without prompting
svn-id: r43685
2009-08-24 09:07:21 +00:00
Paul Gilbert
58ec3e67ef Switched event loop while/do to do/while, to ensure event handling occurs even when the game is under heavy load
svn-id: r43471
2009-08-17 11:51:42 +00:00
Paul Gilbert
86fdd698ad Added detection entry for the UK 16 colour version
svn-id: r43434
2009-08-16 12:03:48 +00:00
Johannes Schickel
02e3f31bf5 Added const qualifiers to static data.
svn-id: r43411
2009-08-15 14:59:11 +00:00
Paul Gilbert
49a4df3c8c Added Dirty Rect handling functionality
svn-id: r43406
2009-08-15 11:50:59 +00:00
Paul Gilbert
a9e55b2f91 Removed redundant code related to Midi handling
svn-id: r43171
2009-08-09 12:23:01 +00:00
Paul Gilbert
6046b8f134 Slight adjustment to Spanish font lookup table, based on mac_es's description of character lookup problems
svn-id: r43155
2009-08-09 01:45:39 +00:00
Paul Gilbert
1cf0eb1727 Bugfix to correctly reset the music tempo when loading a savegame
svn-id: r43023
2009-08-03 09:28:06 +00:00
Paul Gilbert
ef8597d806 Fix bug with the event loop that was discarding pending events rather than leaving them to be processed in the following frame
svn-id: r42965
2009-07-31 23:27:19 +00:00
Max Horn
3f673b899d Patch #2828669: CRUISE: Fix cruise compilation with mingw32ce toolchain
svn-id: r42950
2009-07-30 21:45:09 +00:00
Paul Gilbert
1fea43ab19 Added the character lookup table for the Spanish font
svn-id: r42920
2009-07-30 11:03:16 +00:00
Joost Peters
6d18ada7ef fix/workaround for cruise crash on OSX
svn-id: r42826
2009-07-26 21:06:53 +00:00
Paul Gilbert
ad7762ad16 Added a debug line to allow tracking of script execution
svn-id: r42799
2009-07-26 09:48:52 +00:00
Paul Gilbert
da4367096e Bugfix for mouse button clicks getting counted multiple times
svn-id: r42798
2009-07-26 09:40:35 +00:00
Paul Gilbert
f15eb91d77 Added a delay to the in-game menu loop to prevent 100% CPU usage
svn-id: r42795
2009-07-26 09:09:07 +00:00
Joost Peters
81b508e98a use READ_UINT16 macro
svn-id: r42780
2009-07-25 18:35:27 +00:00
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