This change:

Revision 450  - (view) (download) (as text) - [select for diffs]
Modified Sat Nov 4 02:11:26 2006 CET (15 hours, 53 minutes ago) by devurandom
File length: 9752 byte(s)
Diff to previous 389

- Droped a lot of (nearly) unused types from lib/framework/types.h
- Remove lots of unused functions (Windows/DDraw related)
- Now store the used bitdepth in the config and thus make it configurable 
without having to modify the sourcecode

Contains (this is an excerpt):

--- trunk/src/clparse.c 2006/09/23 14:56:18     389
+++ trunk/src/clparse.c 2006/11/04 01:11:26     450
@@ -250,13 +270,13 @@
                else if ( strcasecmp( tokenType, "--shadows" ) == 0 )
                {
                        // FIXME Should setDrawShadows go into warzoneconfig? 
Or how should config values be handled in general? By the system using it? Or 
by warzoneconfig? Or by config keys only?
-                       //setDrawShadows( TRUE );
-                       setWarzoneKeyNumeric( "shadows", TRUE );
+                       setDrawShadows( TRUE );
+//                     setWarzoneKeyNumeric( "shadows", TRUE );
                }
                else if ( strcasecmp( tokenType, "--noshadows" ) == 0 )
                {
-                       //setDrawShadows( FALSE );
-                       setWarzoneKeyNumeric( "shadows", FALSE );
+                       setDrawShadows( FALSE );
+//                     setWarzoneKeyNumeric( "shadows", FALSE );
                }
                else if ( strcasecmp( tokenType, "--sound" ) == 0 )
                {

Which gives an error while compiling:

g++ -m32 -DVERSION=\"2.0.5\" -DYY_STATIC -I.. -I../.. 
-I/home/Gerard/Warzone-DevPkg/include -fpermissive -Wall -O0 -g3 -DDEBUG -mwindows 
-DWIN32 -c -oclparse.o clparse.c
clparse.c: In function `BOOL ParseCommandLine(int, char**)':
clparse.c:273: error: `setDrawShadows' undeclared (first use this function)
clparse.c:273: error: (Each undeclared identifier is reported only once for 
each function it appears in.)
make[1]: *** [clparse.o] Error 1

- Gerard




_______________________________________________
Warzone-dev mailing list
Warzone-dev@gna.org
https://mail.gna.org/listinfo/warzone-dev

Reply via email to