aboutsummaryrefslogtreecommitdiff
path: root/engines/cruise/cruise_main.cpp
AgeCommit message (Collapse)Author
2014-06-15CRUISE: Add a safeguard to avoid a potential null pointer derefenreceStrangerke
2014-06-10CRUISE: Remove some useless variables, use a boolean for a variableStrangerke
2014-06-09CRUISE: some more renaming, remove another useless variableStrangerke
2014-06-09CRUISE: Remove a couple of useless variablesStrangerke
2014-06-09CRUISE: Initialize some variables in the contractor, change some variables ↵Strangerke
to boolean
2014-06-08CRUISE: Directly use assert.Johannes Schickel
This fixes an ASSERT macro redefinition when compiling the Symbian port. See bug #6622 "SYMBIAN: CRUISE: warning: `ASSERT' redefined".
2014-06-07CRUISE: Fix a null pointer dereferenceStrangerke
2014-06-01CRUISE: Comment out some useless codeStrangerke
2014-06-01CRUISE: Reduce the scope of some variables in actor and cruise_mainStrangerke
2014-06-01CRUISE: Reduce the scope of variables used in the for loopsStrangerke
2014-05-31CRUISE: Replace some more strcpyStrangerke
2014-02-18CRUISE: Make GPL headers consistent in themselves.Johannes Schickel
2012-04-21CRUISE: Fix update of background animations while waiting for user.D G Turner
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-21CRUISE: Modification to main loop to update cursor, even in FastMode.D G Turner
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-21CRUISE: Move cursor update to upper "idle" loop in main function.D G Turner
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-02-15JANITORIAL: Fix missing whitespace in pointer castTarek Soliman
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-15JANITORIAL: Fix whitespace in pointer template argTarek Soliman
2011-11-14CRUISE: Remove unused variablesEugene Sandulenko
2011-10-18CRUISE: Revert part of mouse movement patch applied from Bug #3423955.D G Turner
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-16CRUISE: Fix For Unresponsive Mouse Movement noted in Bug #3423955.D G Turner
This patch was supplied on the bug by Ignaz Forster (ifo).
2011-08-07CRUISE: Replace casts and offset calculations for memory debugger by a ↵Christoph Mallon
simple struct.
2011-06-30JANITORIAL: Silence a couple of "variable set but not used" warnings.eriktorbjorn
2011-06-20ALL: Remove trailing whitespacesMax Horn
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-05-12GIT: Clean up: Suppress SVN tags, now uselessstrangerke
2011-04-28JANITORIAL: Reduce header dependencies in shared codeOri Avtalion
Some backends may break as I only compiled SDL
2011-03-29JANITORIAL: Remove/comment unused varsdhewg
Found by GCC 4.6's -Wunused-but-set-variable
2011-02-23CRUISE: Bugfix for #3188309 - black text at end of introductionPaul Gilbert
2010-11-21CRUISE: Bugfix for #3064846 - Raoul appearing in Book screenPaul Gilbert
svn-id: r54405
2010-11-07LURE: Convert printf to debug/warningMax Horn
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-08-09CRUISE: Eliminate global constructorsEugene Sandulenko
svn-id: r51936
2010-07-17DEBUGGER: Simplify how our console debugger works / is usedMax Horn
* 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-02-21Patch for bug 2943361 by littleboy, adding full kb modifier support to all ↵Yotam Barnoy
engines + GUI and proper keypad handling svn-id: r48101
2010-01-25Strip trailing spaces/tabs.Johannes Schickel
svn-id: r47541
2010-01-12Rename all "Adlib" uses to "AdLib" to match the real name of the sound card ↵Johannes Schickel
/ 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
2009-11-02Changed foo(void) to foo() in almost all non-backend source filesMax Horn
svn-id: r45616
2009-10-10Further memory leak fixesPaul Gilbert
svn-id: r44861
2009-10-09Fixed all memory leaks as far as the initial title screenPaul Gilbert
svn-id: r44814
2009-10-09Set up a basic tracing system for all memory allocations to help track down ↵Paul Gilbert
memory leaks svn-id: r44808
2009-08-24Bugfix for freeze when the in-game Pause 'P' key is usedPaul Gilbert
svn-id: r43690
2009-08-17Switched event loop while/do to do/while, to ensure event handling occurs ↵Paul Gilbert
even when the game is under heavy load svn-id: r43471
2009-07-31Fix bug with the event loop that was discarding pending events rather than ↵Paul Gilbert
leaving them to be processed in the following frame svn-id: r42965
2009-07-30Patch #2828669: CRUISE: Fix cruise compilation with mingw32ce toolchainMax Horn
svn-id: r42950
2009-07-26Bugfix for mouse button clicks getting counted multiple timesPaul Gilbert
svn-id: r42798
2009-07-18Minor tweak to prevent mouse clicks that close a user wait message also ↵Paul Gilbert
being further interpreted as a user walk destination svn-id: r42578
2009-07-17Added an explicit break out of the event processing loop for mouse buttons ↵Paul Gilbert
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-14Bugfix to cursor updates - it previously required that both X and Y ↵Paul Gilbert
positions had changed before a cursor change could occur svn-id: r42472
2009-07-12Added support for sub-relation message types - this fixes trying to attach ↵Paul Gilbert
the chain to the hook on the deck svn-id: r42405
2009-07-07Bugfix so that user delays work correctlyPaul Gilbert
svn-id: r42197
2009-07-07Bugfix so the game speed will correctly change after showing the credits ↵Paul Gilbert
when the game is restarted svn-id: r42196
2009-07-06Removed all the current special cases coding for user (mouse press) waiting, ↵Paul Gilbert
and reimplemented it exactly the way the original did svn-id: r42173