Commit Graph

111 Commits

Author SHA1 Message Date
Eugene Sandulenko
15b881386a CRUISE: Eliminate global constructors
svn-id: r51936
2010-08-09 10:30:40 +00:00
Max Horn
1d4c82885d DEBUGGER: Simplify how our console debugger works / is used
* Remove _isAttached member var and isAttached method
* Engines now always call the onFrame method; whether it does
  something is decided by the debugger class resp. its subclasses
* Make detach() protected instead of private, so that subclasses
  can invoke it
* Remove _detach_now member var (call detach() instead).
* Rename _frame_countdown to _frameCountdown and properly
  document it.
* Add more doxygen comments
* Cleanup

svn-id: r50963
2010-07-17 18:38:42 +00:00
Yotam Barnoy
ef330ed9b4 Patch for bug 2943361 by littleboy, adding full kb modifier support to all engines + GUI and proper keypad handling
svn-id: r48101
2010-02-21 04:04:13 +00:00
Johannes Schickel
aed02365ec Strip trailing spaces/tabs.
svn-id: r47541
2010-01-25 01:39:44 +00:00
Johannes Schickel
0d995c5920 Rename all "Adlib" uses to "AdLib" to match the real name of the sound card / company.
Check this for reference:
http://en.wikipedia.org/wiki/Ad_Lib,_Inc.
http://www.crossfire-designs.de/images/articles/soundcards/adlib.jpg (note the upper left of the card)

This commit does not touch "adlib" and "ADLIB" uses!

Also it does not update all the SCUMM detection entries, which still use "Adlib".

svn-id: r47279
2010-01-12 21:07:56 +00:00
Max Horn
51933629d1 Changed foo(void) to foo() in almost all non-backend source files
svn-id: r45616
2009-11-02 21:54:57 +00:00
Paul Gilbert
df3fbd432d Further memory leak fixes
svn-id: r44861
2009-10-10 04:15:38 +00:00
Paul Gilbert
857a35f748 Fixed all memory leaks as far as the initial title screen
svn-id: r44814
2009-10-09 10:32:33 +00:00
Paul Gilbert
8694b48ae3 Set up a basic tracing system for all memory allocations to help track down memory leaks
svn-id: r44808
2009-10-09 08:15:30 +00:00
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
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
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
da4367096e Bugfix for mouse button clicks getting counted multiple times
svn-id: r42798
2009-07-26 09:40:35 +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
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
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
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
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
e487347921 Added support for loading savegames from the launcher
svn-id: r41424
2009-06-10 12:16:30 +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
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
2abbcd54a4 Replaced loadShort/saveShort functions with applicable endian macros
svn-id: r41097
2009-06-01 09:09:44 +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
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
Johannes Schickel
b3c6751b9b Strip trailing whitespaces in the whole code base.
svn-id: r40867
2009-05-24 15:17:42 +00:00
Paul Gilbert
7d6287dee7 Endian fix in script data access
svn-id: r40641
2009-05-17 10:01:21 +00:00
Paul Gilbert
3c45ee20eb Properly named the dialog menu item 'selected' field
svn-id: r40632
2009-05-17 05:12:10 +00:00
Paul Gilbert
bb45be960d Converted various printf statements to use debug, warning, and error.
svn-id: r40588
2009-05-15 04:35:47 +00:00
Paul Gilbert
4aedfc75f8 Changed the hardcoded 'Parler de..' string in the conversation dialog to use the correct language string
svn-id: r40477
2009-05-12 10:20:12 +00:00
Paul Gilbert
15252ad83c Added support for the global menu save/loading, and changed the savegame format to store the savegame name and thumbnail
svn-id: r39979
2009-04-18 10:16:08 +00:00
Paul Gilbert
5f1c08505f Implemented many of the remaining library functions
svn-id: r39857
2009-04-05 07:52:21 +00:00
Paul Gilbert
07fb7735b5 Replaced all occurrences of the constant '257' with the existing constant 'NUM_FILE_ENTRIES'
svn-id: r39824
2009-04-04 01:21:25 +00:00
Paul Gilbert
d42d6122d9 Laid the basics for music handling
svn-id: r39786
2009-04-01 10:43:24 +00:00
Paul Gilbert
34d3d7c74d Code formatting, added further constant references, and corrected method signatures
svn-id: r39445
2009-03-16 09:45:37 +00:00
Paul Gilbert
979c1e0f6a Fixed some method parameters, changed the main loop to a method of the engine class, and moved the frame delay code to the main loop to make the game more responsive to events
svn-id: r39180
2009-03-07 07:12:10 +00:00
Paul Gilbert
eb610d66bd Corrected click handling when a text message is displaying to properly dismiss the text, rather than trying to immediately perform another action
svn-id: r39088
2009-03-03 11:08:03 +00:00
Paul Gilbert
f3a9274a45 Changed the int16[5] array used in pathfinding to a structure with explicitly named fields
svn-id: r39087
2009-03-03 10:10:35 +00:00
Paul Gilbert
da6315bb4c Formatting fixes, and added extra constants and function name corrections
svn-id: r39063
2009-03-02 08:32:38 +00:00