Commit Graph

93 Commits

Author SHA1 Message Date
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
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
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
Johannes Schickel
d221176c47 CRUISE: Replace some strncpy with strlcpy.
svn-id: r53495
2010-10-15 14:14:33 +00:00
Eugene Sandulenko
b0923dfd76 CRUISE: Fix some code analysis warnings (bug #3087829)
svn-id: r53472
2010-10-15 08:57:18 +00:00
Johannes Schickel
aed02365ec Strip trailing spaces/tabs.
svn-id: r47541
2010-01-25 01:39:44 +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
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
49a4df3c8c Added Dirty Rect handling functionality
svn-id: r43406
2009-08-15 11:50:59 +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
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
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
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
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
31ace2c66c Implemented the library function Op_SongExist
svn-id: r41703
2009-06-20 08:15:39 +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
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
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
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
Johannes Schickel
b3c6751b9b Strip trailing whitespaces in the whole code base.
svn-id: r40867
2009-05-24 15:17:42 +00:00
Paul Gilbert
c3cf7420bd Fixed incorrect pathfinding data entry being deleted when a temporary actor animation is removed
svn-id: r40615
2009-05-16 00:33:49 +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
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
Torbjörn Andersson
f5fb20680f Apart from a "const", the volume() and getVolume() function were identical.
Removed the volume() function.

svn-id: r39868
2009-04-05 15:58:27 +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
121f174d61 Fixed incorrect palette range usage so room fade-ins happen correctly
svn-id: r39822
2009-04-03 23:27:38 +00:00
Johannes Schickel
44025f03d5 Fix compilation via manually implementing strToUpper, instead of relying on strupr.
svn-id: r39791
2009-04-01 14:02:55 +00:00
Paul Gilbert
d42d6122d9 Laid the basics for music handling
svn-id: r39786
2009-04-01 10:43:24 +00:00
Paul Gilbert
ab31f46676 Corrected the positions of two library functions in the library function list
svn-id: r39699
2009-03-26 11:16:34 +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
da6315bb4c Formatting fixes, and added extra constants and function name corrections
svn-id: r39063
2009-03-02 08:32:38 +00:00
Paul Gilbert
ecb6b7bf54 Added an explicit clearing of all animation fields for new animations - this fixes a problem where the player could disappear if he had to rotate to face a selected object
svn-id: r39019
2009-03-01 08:28:10 +00:00
Paul Gilbert
57c7593325 Implemented proper support for the Pause 'p' key
svn-id: r38995
2009-03-01 02:20:22 +00:00
Paul Gilbert
fc6221e781 Moved a set of static arrays into the staticres.cpp file
svn-id: r38539
2009-02-19 09:55:40 +00:00
Paul Gilbert
a27f4203e0 Minor cleanup and changed g_cruise to _vm for consistency
svn-id: r36050
2009-01-25 05:44:18 +00:00
Max Horn
4c5efaecf4 Code formatting fixes, automatically performed by astyle
svn-id: r35870
2009-01-16 02:43:41 +00:00
Jordi Vilalta Prat
66e9d4f5e8 Removed trailing spaces.
svn-id: r30664
2008-01-27 19:47:41 +00:00
Vincent Hamm
c87ad51470 Nearly working pathfinder
svn-id: r30015
2007-12-27 17:37:38 +00:00
Vincent Hamm
f953ed4dde Early pathfinding
svn-id: r30012
2007-12-27 12:05:43 +00:00
Vincent Hamm
1b62e2758c Fix input
Fix timming

svn-id: r29990
2007-12-25 21:03:20 +00:00
Vincent Hamm
b2ab69f455 Fix palette issues
svn-id: r29989
2007-12-25 20:16:59 +00:00