Strangerke
51184eab9d
CRUISE: Remove some useless variables, use a boolean for a variable
2014-06-10 07:25:35 +02:00
Strangerke
b0685aebc6
CRUISE: Initialize some variables
2014-06-09 18:11:18 +02:00
Strangerke
ff93aef6ec
CRUISE: Initialize some variables in the contractor, change some variables to boolean
2014-06-09 17:53:27 +02:00
Johannes Schickel
9e4dfe556e
CRUISE: Directly use assert.
...
This fixes an ASSERT macro redefinition when compiling the Symbian port.
See bug #6622 "SYMBIAN: CRUISE: warning: `ASSERT' redefined".
2014-06-08 17:57:02 +02:00
Strangerke
b830b8498f
CRUISE: Disable a bit more efficiently some code in Op_Random() and Op_PlayFx()
2014-06-06 22:40:29 +02:00
Strangerke
d76c375c3f
CRUISE: Remove useless code in addAnimation()
2014-06-05 08:06:32 +02:00
Strangerke
1dbcd74988
CRUISE: Reduce the scope of variables used in the for loops
2014-06-01 01:21:32 +02:00
Strangerke
6283e7f423
CRUISE: Add a couple of safeguards to avoid potential division by zero
2014-05-31 18:06:32 +02:00
Strangerke
659b7bfeed
CRUISE: Replace some more strcpy
2014-05-31 17:30:53 +02:00
Strangerke
0722e84e3f
CRUISE: Add some more safeguard in opcode functions
2014-05-31 15:38:28 +02:00
Max Horn
4d02f67bd1
ALL: Resolve multiple clang warnings
2014-03-30 14:38:02 +02:00
Johannes Schickel
00b6dfe9cf
CRUISE: Make GPL headers consistent in themselves.
2014-02-18 02:39:33 +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
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