Commit Graph

463 Commits

Author SHA1 Message Date
Strangerke
8dbfcc37fb CRUISE: Add a safeguard to avoid a potential null pointer derefenrece 2014-06-15 18:19:11 +02:00
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
10f65a3c6f CRUISE: some more renaming, remove another useless variable 2014-06-09 18:01:04 +02:00
Strangerke
58bfb3b435 CRUISE: Remove a couple of useless variables 2014-06-09 17:57:14 +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
3f6d034c8a CRUISE: Add a safeguard, some minor rework in BackgroundIncrust 2014-06-07 17:05:01 +02:00
Strangerke
add9010dbb CRUISE: Add a couple of checks to avoid the use of negative indices in arrays. Some minor rework in the data Loader 2014-06-07 16:05:08 +02:00
Strangerke
aedb109567 CRUISE: Some minor rework in script handler 2014-06-07 14:21:20 +02:00
Strangerke
6d6f789001 CRUISE: Add some comments, remove some optional brackets 2014-06-07 13:47:55 +02:00
Strangerke
52bcc9dd25 CRUISE: Fix a null pointer dereference 2014-06-07 12:13:30 +02:00
Strangerke
3c1c080c3a CRUISE: Fix some more CppCheck warnings 2014-06-06 23:18:47 +02:00
Strangerke
8cb50b52e0 CRUISE: Reduce the scope of some more variables 2014-06-06 22:49:21 +02:00
Strangerke
23abf274a7 CRUISE: Fix CppCheck warnings in gfxModule 2014-06-06 22:45:14 +02:00
Strangerke
ec0d6b916d CRUISE: Reduce the scope of several variables in processActorWalk() 2014-06-06 22:41:44 +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
09e3ddf5b9 CRUISE: Reduce the scope of variables in fillpoly() 2014-06-06 07:24:45 +02:00
Strangerke
ec17a7ece6 CRUISE: disable more efficiently some code 2014-06-06 07:19:56 +02:00
Strangerke
2eaa78b54b CRUISE: Fix a couple of CppCheck warnings in Volume 2014-06-06 07:12:54 +02:00
Strangerke
d76c375c3f CRUISE: Remove useless code in addAnimation() 2014-06-05 08:06:32 +02:00
Strangerke
ef902a3fa2 CRUISE: Remove logically dead code in Sound 2014-06-05 08:02:43 +02:00
Strangerke
aaf9c35da2 CRUISE: More rework and renaming on the decompiler 2014-06-01 21:59:11 +02:00
Strangerke
0b4beb59b6 CRUISE: Start renaming opcodes in the Decompiler, some rework 2014-06-01 11:50:49 +02:00
Strangerke
6b8348a6bd CRUISE: Fix a CppCheck error in decompiler 2014-06-01 11:50:47 +02:00
Strangerke
094b9d18bb CRUISE: Fix a bug in the decompiler 2014-06-01 11:50:45 +02:00
Strangerke
7f19bbb21d CRUISE: Reduce the scope of a variable, remove a useless increment 2014-06-01 11:50:44 +02:00
Strangerke
a6ead6bba8 CRUISE: Comment out some useless code 2014-06-01 11:50:42 +02:00
Strangerke
c15f211486 CRUISE: Reduce the scope of some variables in actor and cruise_main 2014-06-01 11:50:40 +02:00
Strangerke
1dbcd74988 CRUISE: Reduce the scope of variables used in the for loops 2014-06-01 01:21:32 +02:00
Strangerke
13cc433fb6 CRUISE: error out in some cases where divide by zero is expected 2014-06-01 00:18:08 +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
Strangerke
59d072c40c CRUISE: Add safeguards to some more string manipulations 2014-05-31 01:35:33 +02:00
Strangerke
8cbee15096 CRUISE: Add safeguards to avoid a buffer overflow in linker and sound 2014-05-31 01:35:32 +02:00
Strangerke
00a0a412bb CRUISE: Add a safeguard to avoid a buffer overflow 2014-05-30 21:33:38 +02:00
Johannes Schickel
30d64edac4 ALL: Make Debugger command function names conform to our guidelines. 2014-05-27 02:04:08 +02:00
Johannes Schickel
ae4ffe01f0 ALL: Rename Debugger::DCmd_Register to Debugger::registerCmd. 2014-05-27 02:04:08 +02:00
Johannes Schickel
daa8d57a86 ALL: Rename Debugger::DebugPrintf to Debugger::debugPrintf. 2014-05-27 02:04:07 +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
Johannes Schickel
5c29233921 CRUISE: Indent REGISTER_PLUGIN_* for consistency. 2014-02-17 23:01:53 +01:00
D G Turner
ef85456859 BUILD: Remove need for engine.mk in each engine directory.
Each engine now only has to provide a single configure.engine file
adding the engine into the configure script, which then produces the
required other files automatically.
2013-11-24 00:48:01 +00:00
D G Turner
1ac01d2333 BUILD: Remove need for engine-plugin.h in engines.
This is now generated automatically by the configure script from the
engine directory names.
2013-11-24 00:48:01 +00:00
D G Turner
00c27a28f9 BUILD: Split engines/plugins_table header down to a file per engine.
This is the third and final commit enabling fully pluggable engines.

Now providing an engine folder contains a configure.engine, engine.mk
and engine-plugin.h file, it will be picked up automatically by the
configure script.
2013-11-24 00:48:01 +00:00
D G Turner
d77cf95a18 BUILD: Split engines.mk down to a single file per engine.
This is the second part of allowing engines to be added dynamically.
Each folder in engines/ which must contain a file named "engine.mk"
containing the make definitions for that engine.
2013-11-24 00:48:01 +00:00
D G Turner
aa947c9474 BUILD: Split configure.engines down to a single file per engine.
This is the first part of allowing engines to be added dynamically.
They are placed into a folder in engines/ which must contain a file
named "configure.engine" to add the engine, which is pulled into the
top level configure script automatically.
2013-11-24 00:45:38 +00:00
Johannes Schickel
378387c903 I18N: Move specification of engine specific files to enginedir/POTFILES.
This allows to keep the engines to specfiy the files for translation close to
the engine sources itself.

Thanks to criezy for his suggestion on this approach.
2013-08-12 17:54:31 +02:00
Strangerke
233cbb13b8 CRUISE: Remove useless fields in CRUISEGameDescription 2013-06-18 23:16:17 +02:00