Johannes Schickel
00b6dfe9cf
CRUISE: Make GPL headers consistent in themselves.
2014-02-18 02:39:33 +01:00
D G Turner
a5745434d3
CRUISE: Fix update of background animations while waiting for user.
...
This is the third and final part of the patch supplied by Ignaz Forster
on bug #3423955 ("CRUISE: Slow / unresponsive game behaviour") for
avoiding blocking graphical updates during user wait loops.
The removal of the continue statement fixes the update of background
animations while waiting for user to respond i.e. try opening a locked
door on the upper deck of the boat and check the sea background
animation, but it also has the side effect of allowing hotspots to
respond during this period if the user clicks fast enough.
However, this bug was also present in the original interpreter, and
a workaround has been added to inhibit this.
2012-04-21 01:55:05 +01:00
D G Turner
f351a1d7ba
CRUISE: Modification to main loop to update cursor, even in FastMode.
...
This is the second part of the patch supplied by Ignaz Forster on
bug #3423955 ("CRUISE: Slow / unresponsive game behaviour") for
avoiding blocking graphical updates during user wait loops.
This removes the check for fastMode from the cursor update code and
other code in this "idle" loop, and moves it down to qualifying
only a few of the function calls.
2012-04-21 01:55:04 +01:00
D G Turner
c4b08c0b98
CRUISE: Move cursor update to upper "idle" loop in main function.
...
This is the first part of the patch supplied by Ignaz Forster on
bug #3423955 ("CRUISE: Slow / unresponsive game behaviour") for
avoiding blocking graphical updates during user wait loops.
Hotspots passed during the idle loop do _not_ give any user feedback
without this patch.
The original patch has been split to allow for better understanding of
the changes and to allow fine grained bisection if this introduces any
regressions.
2012-04-21 01:55:03 +01:00
Tarek Soliman
a4798602d7
JANITORIAL: Fix missing whitespace in pointer cast
...
find -name '*.h' -or -name '*.cpp' | xargs sed -r -i 's@\(([A-Za-z0-9]+)\*\)@(\1 *)@g'
This seems to have caught some params as well which is not undesirable IMO.
It also caught some strings containing this which is undesirable so I
excluded them manually. (engines/sci/engine/kernel_tables.h)
2012-02-15 10:07:10 -06:00
Tarek Soliman
921f602ab8
JANITORIAL: Fix whitespace in pointer template arg
2012-02-15 10:07:08 -06:00
Eugene Sandulenko
f51116bb46
CRUISE: Remove unused variables
2011-11-14 22:21:56 +02:00
D G Turner
3b71a3a7fb
CRUISE: Revert part of mouse movement patch applied from Bug #3423955 .
...
The removal of updateScreen() when DisplayOn is not set may cause a
regression and is not related to fixing of the mouse jerkiness.
2011-10-18 01:59:08 +01:00
D G Turner
fca8ac60de
CRUISE: Fix For Unresponsive Mouse Movement noted in Bug #3423955 .
...
This patch was supplied on the bug by Ignaz Forster (ifo).
2011-10-16 21:49:43 +01:00
Christoph Mallon
715c07930d
CRUISE: Replace casts and offset calculations for memory debugger by a simple struct.
2011-08-07 15:19:07 +02:00
eriktorbjorn
5dd8f2575b
JANITORIAL: Silence a couple of "variable set but not used" warnings.
2011-06-30 23:47:10 +02:00
Max Horn
88913c0139
ALL: Remove trailing whitespaces
...
This tries to make our code a bit more compliant with our code formatting
conventions. For future use, this is the command I used:
git ls-files "*.cpp" "*.h" | xargs sed -i -e 's/[ \t]*$//'
2011-06-20 00:59:48 +02:00
strangerke
69b1485a22
GIT: Clean up: Suppress SVN tags, now useless
2011-05-12 01:16:22 +02:00
Ori Avtalion
9414d7a6e2
JANITORIAL: Reduce header dependencies in shared code
...
Some backends may break as I only compiled SDL
2011-04-28 15:08:58 +03:00
dhewg
d83a83ef50
JANITORIAL: Remove/comment unused vars
...
Found by GCC 4.6's -Wunused-but-set-variable
2011-03-29 21:57:56 +02:00
Paul Gilbert
0d6069e571
CRUISE: Bugfix for #3188309 - black text at end of introduction
2011-02-23 19:47:07 +11:00
Paul Gilbert
cb2a20cbd0
CRUISE: Bugfix for #3064846 - Raoul appearing in Book screen
...
svn-id: r54405
2010-11-21 05:31:13 +00:00
Max Horn
a905682cf8
LURE: Convert printf to debug/warning
...
Exception: The "decompiler" code still uses fopen/fprintf etc.
but it is disabled by default, hence I am ignoring it for now.
svn-id: r54108
2010-11-07 01:03:58 +00:00
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