]> de.git.xonotic.org Git - xonotic/netradiant.git/commitdiff
Merge branch 'master' into Mario/winfix
authorMario <mario@smbclan.net>
Sun, 29 Apr 2018 14:01:55 +0000 (00:01 +1000)
committerMario <mario@smbclan.net>
Sun, 29 Apr 2018 14:01:55 +0000 (00:01 +1000)
193 files changed:
libs/picomodel/lwo/lwob.c
libs/picomodel/picointernal.c
libs/picomodel/picointernal.h
libs/picomodel/pm_3ds.c
libs/picomodel/pm_terrain.c
plugins/iqmmodel/iqm.cpp
plugins/iqmmodel/iqm.h
plugins/iqmmodel/plugin.cpp
plugins/iqmmodel/plugin.h
tools/quake2/common/bspfile.c
tools/quake2/common/bspfile.h
tools/quake2/common/cmdlib.c
tools/quake2/common/cmdlib.h
tools/quake2/common/inout.c
tools/quake2/common/inout.h
tools/quake2/common/l3dslib.c
tools/quake2/common/l3dslib.h
tools/quake2/common/lbmlib.c
tools/quake2/common/lbmlib.h
tools/quake2/common/mathlib.c
tools/quake2/common/mathlib.h
tools/quake2/common/path_init.c
tools/quake2/common/polylib.c
tools/quake2/common/polylib.h
tools/quake2/common/q2_threads.h
tools/quake2/common/qfiles.h
tools/quake2/common/scriplib.c
tools/quake2/common/scriplib.h
tools/quake2/common/threads.c
tools/quake2/common/trilib.c
tools/quake2/common/trilib.h
tools/quake2/q2map/brushbsp.c
tools/quake2/q2map/csg.c
tools/quake2/q2map/faces.c
tools/quake2/q2map/flow.c
tools/quake2/q2map/gldraw.c
tools/quake2/q2map/glfile.c
tools/quake2/q2map/leakfile.c
tools/quake2/q2map/lightmap.c
tools/quake2/q2map/main.c
tools/quake2/q2map/map.c
tools/quake2/q2map/nodraw.c
tools/quake2/q2map/patches.c
tools/quake2/q2map/portals.c
tools/quake2/q2map/prtfile.c
tools/quake2/q2map/q2map.h
tools/quake2/q2map/qbsp.c
tools/quake2/q2map/qbsp.h
tools/quake2/q2map/qrad.c
tools/quake2/q2map/qrad.h
tools/quake2/q2map/qvis.c
tools/quake2/q2map/qvis.h
tools/quake2/q2map/textures.c
tools/quake2/q2map/trace.c
tools/quake2/q2map/tree.c
tools/quake2/q2map/writebsp.c
tools/quake2/qdata/images.c
tools/quake2/qdata/models.c
tools/quake2/qdata/qdata.c
tools/quake2/qdata/qdata.h
tools/quake2/qdata/sprites.c
tools/quake2/qdata/tables.c
tools/quake2/qdata/video.c
tools/quake2/qdata_heretic2/adpcm.h
tools/quake2/qdata_heretic2/animcomp.c
tools/quake2/qdata_heretic2/animcomp.h
tools/quake2/qdata_heretic2/anorms.h
tools/quake2/qdata_heretic2/book.c
tools/quake2/qdata_heretic2/common/bspfile.c
tools/quake2/qdata_heretic2/common/bspfile.h
tools/quake2/qdata_heretic2/common/cmdlib.c
tools/quake2/qdata_heretic2/common/cmdlib.h
tools/quake2/qdata_heretic2/common/her2_threads.h
tools/quake2/qdata_heretic2/common/inout.c
tools/quake2/qdata_heretic2/common/inout.h
tools/quake2/qdata_heretic2/common/l3dslib.c
tools/quake2/qdata_heretic2/common/l3dslib.h
tools/quake2/qdata_heretic2/common/lbmlib.c
tools/quake2/qdata_heretic2/common/lbmlib.h
tools/quake2/qdata_heretic2/common/mathlib.c
tools/quake2/qdata_heretic2/common/mathlib.h
tools/quake2/qdata_heretic2/common/path_init.c
tools/quake2/qdata_heretic2/common/polylib.c
tools/quake2/qdata_heretic2/common/polylib.h
tools/quake2/qdata_heretic2/common/qfiles.c
tools/quake2/qdata_heretic2/common/qfiles.h
tools/quake2/qdata_heretic2/common/scriplib.c
tools/quake2/qdata_heretic2/common/scriplib.h
tools/quake2/qdata_heretic2/common/threads.c
tools/quake2/qdata_heretic2/common/token.c
tools/quake2/qdata_heretic2/common/token.h
tools/quake2/qdata_heretic2/common/trilib.c
tools/quake2/qdata_heretic2/common/trilib.h
tools/quake2/qdata_heretic2/fmodels.c
tools/quake2/qdata_heretic2/images.c
tools/quake2/qdata_heretic2/jointed.c
tools/quake2/qdata_heretic2/jointed.h
tools/quake2/qdata_heretic2/joints.h
tools/quake2/qdata_heretic2/models.c
tools/quake2/qdata_heretic2/pics.c
tools/quake2/qdata_heretic2/qcommon/angles.h
tools/quake2/qdata_heretic2/qcommon/arrayedlist.h
tools/quake2/qdata_heretic2/qcommon/flex.h
tools/quake2/qdata_heretic2/qcommon/fmodel.h
tools/quake2/qdata_heretic2/qcommon/h2common.h
tools/quake2/qdata_heretic2/qcommon/placement.h
tools/quake2/qdata_heretic2/qcommon/q_typedef.h
tools/quake2/qdata_heretic2/qcommon/qfiles.h
tools/quake2/qdata_heretic2/qcommon/reference.c
tools/quake2/qdata_heretic2/qcommon/reference.h
tools/quake2/qdata_heretic2/qcommon/resourcemanager.c
tools/quake2/qdata_heretic2/qcommon/resourcemanager.h
tools/quake2/qdata_heretic2/qcommon/skeletons.c
tools/quake2/qdata_heretic2/qcommon/skeletons.h
tools/quake2/qdata_heretic2/qd_fmodel.h
tools/quake2/qdata_heretic2/qd_skeletons.c
tools/quake2/qdata_heretic2/qd_skeletons.h
tools/quake2/qdata_heretic2/qdata.c
tools/quake2/qdata_heretic2/qdata.h
tools/quake2/qdata_heretic2/sprites.c
tools/quake2/qdata_heretic2/svdcmp.c
tools/quake2/qdata_heretic2/tables.c
tools/quake2/qdata_heretic2/tmix.c
tools/quake2/qdata_heretic2/video.c
tools/quake3/common/aselib.c
tools/quake3/common/aselib.h
tools/quake3/common/bspfile.c
tools/quake3/common/bspfile.h
tools/quake3/common/cmdlib.c
tools/quake3/common/cmdlib.h
tools/quake3/common/imagelib.c
tools/quake3/common/imagelib.h
tools/quake3/common/inout.c
tools/quake3/common/inout.h
tools/quake3/common/l3dslib.c
tools/quake3/common/l3dslib.h
tools/quake3/common/mutex.c
tools/quake3/common/mutex.h
tools/quake3/common/polylib.c
tools/quake3/common/polylib.h
tools/quake3/common/polyset.h
tools/quake3/common/qfiles.h
tools/quake3/common/qthreads.h
tools/quake3/common/scriplib.c
tools/quake3/common/scriplib.h
tools/quake3/common/surfaceflags.h
tools/quake3/common/threads.c
tools/quake3/common/trilib.c
tools/quake3/common/trilib.h
tools/quake3/common/vfs.c
tools/quake3/q3data/3dslib.c
tools/quake3/q3data/3dslib.h
tools/quake3/q3data/compress.c
tools/quake3/q3data/images.c
tools/quake3/q3data/md3lib.c
tools/quake3/q3data/md3lib.h
tools/quake3/q3data/models.c
tools/quake3/q3data/oldstuff.c
tools/quake3/q3data/p3dlib.c
tools/quake3/q3data/p3dlib.h
tools/quake3/q3data/polyset.c
tools/quake3/q3data/q3data.c
tools/quake3/q3data/q3data.h
tools/quake3/q3data/stripper.c
tools/quake3/q3data/video.c
tools/quake3/q3map2/brush.c
tools/quake3/q3map2/bsp.c
tools/quake3/q3map2/bspfile_abstract.c
tools/quake3/q3map2/facebsp.c
tools/quake3/q3map2/game__null.h
tools/quake3/q3map2/game_etut.h
tools/quake3/q3map2/game_quakelive.h
tools/quake3/q3map2/game_unvanquished.h
tools/quake3/q3map2/game_wolf.h
tools/quake3/q3map2/game_wolfet.h
tools/quake3/q3map2/help.c
tools/quake3/q3map2/image.c
tools/quake3/q3map2/light.c
tools/quake3/q3map2/light_bounce.c
tools/quake3/q3map2/light_trace.c
tools/quake3/q3map2/light_ydnar.c
tools/quake3/q3map2/lightmaps_ydnar.c
tools/quake3/q3map2/main.c
tools/quake3/q3map2/model.c
tools/quake3/q3map2/path_init.c
tools/quake3/q3map2/portals.c
tools/quake3/q3map2/q3map2.h
tools/quake3/q3map2/surface.c
tools/quake3/q3map2/surface_extra.c
tools/quake3/q3map2/surface_meta.c
tools/quake3/q3map2/tjunction.c
tools/quake3/q3map2/vis.c
tools/quake3/q3map2/writebsp.c

index 459c656011f1cd3ab80deb3ca303fcc0b6df8775..cae5357dbd9a4a44172390e1c6e8bcc0e8a25165 100644 (file)
@@ -72,7 +72,7 @@ static int add_clip( char *s, lwClip **clist, int *nclips ){
        clip->saturation.val = 1.0f;
        clip->gamma.val = 1.0f;
 
-       if ( ( p = strstr( s, "(sequence)" ) ) ) {
+       if ( ( p = strstr( s, "(sequence)" ) ) != NULL ) {
                p[ -1 ] = 0;
                clip->type = ID_ISEQ;
                clip->source.seq.prefix = s;
@@ -381,12 +381,15 @@ lwSurface *lwGetSurface5( picoMemStream_t *fp, int cksize, lwObject *obj ){
                        break;
 
                case ID_TFLG:
-                       if ( !tex ) {
+                       if( tex == NULL ) {
                                goto Fail;
                        }
+
                        flags = getU2( fp );
 
                        i = -1;
+
+                       //only one of the three axis bits should be set
                        if ( flags & 1 ) {
                                i = 0;
                        }
index 4e45fb6f285730906044b969ffcda1cf1175f4ba..018ee3a130295869d9294409545e6ca6a7792cb6 100644 (file)
@@ -757,7 +757,7 @@ picoParser_t *_pico_new_parser( const picoByte_t *buffer, int bufSize ){
        }
        /* setup */
        p->buffer   = (const char *) buffer;
-       p->cursor   = (const char *) buffer;
+       p->cursor   = p->buffer;
        p->bufSize  = bufSize;
        p->max      = p->buffer + bufSize;
        p->curLine = 1; /* sea: new */
index f393523665ae8a0afdd305d7b7d53d14f744baf7..4bcbd4c281ae026efd4ad87ea7375f17ee4adb45 100644 (file)
@@ -80,22 +80,22 @@ extern "C"
 /* types */
 typedef struct picoParser_s
 {
-       const char  *buffer;
+       const char *buffer;
        int bufSize;
-       char    *token;
+       char *token;
        int tokenSize;
        int tokenMax;
-       const char  *cursor;
-       const char  *max;
+       const char *cursor;
+       const char *max;
        int curLine;
 }
 picoParser_t;
 
 typedef struct picoMemStream_s
 {
-       const picoByte_t    *buffer;
+       const picoByte_t *buffer;
        int bufSize;
-       const picoByte_t    *curPos;
+       const picoByte_t *curPos;
        int flag;
 }
 picoMemStream_t;
index 1a8e88f1985a2fe04e122fecc35ada208879340b..e72454a170a6d851599d15ac2f4c38f3d2863e5f 100644 (file)
@@ -119,7 +119,7 @@ debugChunkNames[] =
        { CHUNK_OBJECT_UV, "CHUNK_OBJECT_UV"         },
        { 0,  NULL                     }
 };
-static char *DebugGetChunkName( int id ){
+static char *DebugGetChunkName( int id ) {
        int i,max;  /* imax? ;) */
        max = sizeof( debugChunkNames ) / sizeof( debugChunkNames[0] );
 
@@ -518,7 +518,6 @@ static int DoNextEditorDataChunk( T3dsLoaderPers *pers, long endofs ){
                        /* read in surface name */
                        if ( !GetASCIIZ( pers,surfaceName,sizeof( surfaceName ) ) ) {
                                return 0; /* this is bad */
-
                        }
 //PicoGetSurfaceName
                        /* ignore NULL name surfaces */
index ef0371e3f2506aff12f4c0e9a4804bccab02fff6..a82e4b122277916d9a3c4910ab3ce22017446e1e 100644 (file)
@@ -55,7 +55,7 @@ tga_t;
    fixme: replace/clean this function
  */
 
-void _terrain_load_tga_buffer( unsigned char *buffer, unsigned char **pic, int *width, int *height ){
+void _terrain_load_tga_buffer( unsigned char *buffer, unsigned char **pic, int *width, int *height ) {
        int row, column;
        int columns, rows, numPixels;
        unsigned char   *pixbuf;
@@ -291,7 +291,7 @@ breakOut:;
    validates a picoterrain file
  */
 
-static int _terrain_canload( PM_PARAMS_CANLOAD ){
+static int _terrain_canload( PM_PARAMS_CANLOAD ) {
        picoParser_t    *p;
 
 
@@ -326,7 +326,7 @@ static int _terrain_canload( PM_PARAMS_CANLOAD ){
    loads a picoterrain file
  */
 
-static picoModel_t *_terrain_load( PM_PARAMS_LOAD ){
+static picoModel_t *_terrain_load( PM_PARAMS_LOAD ) {
        int i, j, v, pw[ 5 ], r;
        picoParser_t    *p;
 
index 96883c68842517fe263fa3b04db6dc1b6f15c988..466effcc3a7940e9765c0a2720bcd0bfe215927f 100644 (file)
@@ -1,24 +1,24 @@
 /*
-Copyright (C) 2001-2006, William Joseph.
-Copyright (C) 2010-2014 COR Entertainment, LLC.
-All Rights Reserved.
+   Copyright (C) 2001-2006, William Joseph.
+   Copyright (C) 2010-2014 COR Entertainment, LLC.
+   All Rights Reserved.
 
-This file is part of GtkRadiant.
+   This file is part of GtkRadiant.
 
-GtkRadiant is free software; you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 2 of the License, or
-(at your option) any later version.
+   GtkRadiant is free software; you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation; either version 2 of the License, or
+   (at your option) any later version.
 
-GtkRadiant is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-GNU General Public License for more details.
+   GtkRadiant is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
 
-You should have received a copy of the GNU General Public License
-along with GtkRadiant; if not, write to the Free Software
-Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-*/
+   You should have received a copy of the GNU General Public License
+   along with GtkRadiant; if not, write to the Free Software
+   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
+ */
 
 #include "iqm.h"
 
@@ -33,43 +33,41 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 typedef unsigned char byte;
 
 /*
-========================================================================
+   ========================================================================
 
-.IQM triangle model file format
+   .IQM triangle model file format
+
+   ========================================================================
+ */
 
-========================================================================
-*/
 typedef struct {
-    float s;
-    float t;
+       float s;
+       float t;
 } iqmSt_t;
 
-void istream_read_iqmSt(PointerInputStream &inputStream, iqmSt_t &st)
-{
-    st.s = istream_read_float32_le(inputStream);
-    st.t = istream_read_float32_le(inputStream);
+void istream_read_iqmSt( PointerInputStream &inputStream, iqmSt_t &st ){
+       st.s = istream_read_float32_le( inputStream );
+       st.t = istream_read_float32_le( inputStream );
 }
 
 typedef struct {
-    unsigned int indices[3];
+       unsigned int indices[3];
 } iqmTriangle_t;
 
-void istream_read_iqmTriangle(PointerInputStream &inputStream, iqmTriangle_t &triangle)
-{
-    triangle.indices[0] = istream_read_int32_le(inputStream);
-    triangle.indices[1] = istream_read_int32_le(inputStream);
-    triangle.indices[2] = istream_read_int32_le(inputStream);
+void istream_read_iqmTriangle( PointerInputStream &inputStream, iqmTriangle_t &triangle ){
+       triangle.indices[0] = istream_read_int32_le( inputStream );
+       triangle.indices[1] = istream_read_int32_le( inputStream );
+       triangle.indices[2] = istream_read_int32_le( inputStream );
 }
 
 typedef struct {
-    float v[3];
+       float v[3];
 } iqmPos_t;
 
-void istream_read_iqmPos(PointerInputStream &inputStream, iqmPos_t &iqmPos)
-{
-    iqmPos.v[0] = istream_read_float32_le(inputStream);
-    iqmPos.v[1] = istream_read_float32_le(inputStream);
-    iqmPos.v[2] = istream_read_float32_le(inputStream);
+void istream_read_iqmPos( PointerInputStream &inputStream, iqmPos_t &iqmPos ){
+       iqmPos.v[0] = istream_read_float32_le( inputStream );
+       iqmPos.v[1] = istream_read_float32_le( inputStream );
+       iqmPos.v[2] = istream_read_float32_le( inputStream );
 }
 
 const int IQM_POSITION = 0;
@@ -95,190 +93,221 @@ const int IQM_DOUBLE = 8;
 const int IQM_LOOP = 1;
 
 typedef struct iqmHeader_s {
-    byte id[16];
-    unsigned int version;
-    unsigned int filesize;
-    unsigned int flags;
-    unsigned int num_text, ofs_text;
-    unsigned int num_meshes, ofs_meshes;
-    unsigned int num_vertexarrays, num_vertexes, ofs_vertexarrays;
-    unsigned int num_triangles, ofs_triangles, ofs_neighbors;
-    unsigned int num_joints, ofs_joints;
-    unsigned int num_poses, ofs_poses;
-    unsigned int num_anims, ofs_anims;
-    unsigned int num_frames, num_framechannels, ofs_frames, ofs_bounds;
-    unsigned int num_comment, ofs_comment;
-    unsigned int num_extensions, ofs_extensions;
+       byte id[16];
+       unsigned int version;
+       unsigned int filesize;
+       unsigned int flags;
+       unsigned int num_text, ofs_text;
+       unsigned int num_meshes, ofs_meshes;
+       unsigned int num_vertexarrays, num_vertexes, ofs_vertexarrays;
+       unsigned int num_triangles, ofs_triangles, ofs_neighbors;
+       unsigned int num_joints, ofs_joints;
+       unsigned int num_poses, ofs_poses;
+       unsigned int num_anims, ofs_anims;
+       unsigned int num_frames, num_framechannels, ofs_frames, ofs_bounds;
+       unsigned int num_comment, ofs_comment;
+       unsigned int num_extensions, ofs_extensions;
 } iqmHeader_t;
 
-void istream_read_iqmHeader(PointerInputStream &inputStream, iqmHeader_t &header)
-{
-    inputStream.read(header.id, 16);
-#define READINT(x) header.x = istream_read_int32_le(inputStream);
-    READINT (version)
-    READINT (filesize)
-    READINT (flags)
-    READINT (num_text)
-    READINT (ofs_text)
-    READINT (num_meshes)
-    READINT (ofs_meshes)
-    READINT (num_vertexarrays)
-    READINT (num_vertexes)
-    READINT (ofs_vertexarrays)
-    READINT (num_triangles)
-    READINT (ofs_triangles)
-    READINT (ofs_neighbors)
-    READINT (num_joints)
-    READINT (ofs_joints)
-    READINT (num_frames)
-    READINT (num_framechannels)
-    READINT (ofs_frames)
-    READINT (ofs_bounds)
-    READINT (num_comment)
-    READINT (ofs_comment)
-    READINT (num_extensions)
-    READINT (ofs_extensions)
+void istream_read_iqmHeader( PointerInputStream &inputStream, iqmHeader_t &header ){
+       inputStream.read( header.id, 16 );
+#define READINT( x ) header.x = istream_read_int32_le( inputStream );
+       READINT( version )
+       READINT( filesize )
+       READINT( flags )
+       READINT( num_text )
+       READINT( ofs_text )
+       READINT( num_meshes )
+       READINT( ofs_meshes )
+       READINT( num_vertexarrays )
+       READINT( num_vertexes )
+       READINT( ofs_vertexarrays )
+       READINT( num_triangles )
+       READINT( ofs_triangles )
+       READINT( ofs_neighbors )
+       READINT( num_joints )
+       READINT( ofs_joints )
+       READINT( num_frames )
+       READINT( num_framechannels )
+       READINT( ofs_frames )
+       READINT( ofs_bounds )
+       READINT( num_comment )
+       READINT( ofs_comment )
+       READINT( num_extensions )
+       READINT( ofs_extensions )
 #undef READINT
 }
 
-typedef struct iqmvertexarray_s {
-    unsigned int type;
-    unsigned int flags;
-    unsigned int format;
-    unsigned int size;
-    unsigned int offset;
+typedef struct iqmmesh_s {
+       unsigned int name;
+       unsigned int material;
+       unsigned int first_vertex;
+       unsigned int num_vertexes;
+       unsigned int first_triangle;
+       unsigned int num_triangles;
+} iqmmesh_t;
+
+void istream_read_iqmMesh( PointerInputStream &inputStream, iqmmesh_t &iqmmesh ){
+#define READUINT( x ) iqmmesh.x = istream_read_uint32_le( inputStream );
+       READUINT( name )
+       READUINT( material )
+       READUINT( first_vertex )
+       READUINT( num_vertexes )
+       READUINT( first_triangle )
+       READUINT( num_triangles )
+#undef READUINT
 }
-        iqmvertexarray_t;
-
-void istream_read_iqmVertexarray(PointerInputStream &inputStream, iqmvertexarray_t &out)
-{
-#define READINT(x) out.x = istream_read_int32_le(inputStream);
-    READINT (type)
-    READINT (flags)
-    READINT (format)
-    READINT (size)
-    READINT (offset)
+
+typedef struct iqmvertexarray_s {
+       unsigned int type;
+       unsigned int flags;
+       unsigned int format;
+       unsigned int size;
+       unsigned int offset;
+} iqmvertexarray_t;
+
+void istream_read_iqmVertexarray( PointerInputStream &inputStream, iqmvertexarray_t &vertexarray ){
+#define READINT( x ) vertexarray.x = istream_read_int32_le( inputStream );
+       READINT( type )
+       READINT( flags )
+       READINT( format )
+       READINT( size )
+       READINT( offset )
 #undef READINT
 }
 
-
-ArbitraryMeshVertex IQMVertex_construct(const iqmPos_t *pos, const iqmPos_t *norm, const iqmSt_t *st)
-{
-    return ArbitraryMeshVertex(
-            Vertex3f(pos->v[0], pos->v[1], pos->v[2]),
-            Normal3f(norm->v[0], norm->v[1], norm->v[2]),
-            TexCoord2f(st->s, st->t)
-    );
+ArbitraryMeshVertex IQMVertex_construct( const iqmPos_t *pos, const iqmPos_t *norm, const iqmSt_t *st ){
+       return ArbitraryMeshVertex(
+               Vertex3f( pos->v[0], pos->v[1], pos->v[2] ),
+               Normal3f( norm->v[0], norm->v[1], norm->v[2] ),
+               TexCoord2f( st->s, st->t )
+               );
 }
 
-void IQMSurface_read(Model &model, const byte *buffer, ArchiveFile &file)
-{
-    Surface &surface = model.newSurface();
-    iqmHeader_t header;
-    {
-        PointerInputStream inputStream(buffer);
-        istream_read_iqmHeader(inputStream, header);
-    }
-
-    {
-
-        UniqueVertexBuffer<ArbitraryMeshVertex> inserter(surface.vertices());
-        inserter.reserve(header.num_vertexes);
-
-        int ofs_position = -1, ofs_st = -1, ofs_normal = -1;
-        PointerInputStream vaStream(buffer + header.ofs_vertexarrays);
-        for (unsigned int i = 0; i < header.num_vertexarrays; i++) {
-            iqmvertexarray_t va;
-            istream_read_iqmVertexarray(vaStream, va);
-
-            switch (va.type) {
-                case IQM_POSITION:
-                    if (va.format == IQM_FLOAT && va.size == 3) {
-                        ofs_position = va.offset;
-                    }
-                    break;
-                case IQM_TEXCOORD:
-                    if (va.format == IQM_FLOAT && va.size == 2) {
-                        ofs_st = va.offset;
-                    }
-                    break;
-                case IQM_NORMAL:
-                    if (va.format == IQM_FLOAT && va.size == 3) {
-                        ofs_normal = va.offset;
-                    }
-                    break;
-            }
-        }
-
-        surface.indices().reserve(header.num_vertexes);
-
-        PointerInputStream posStream(buffer + ofs_position);
-        Array<iqmPos_t> iqmPos(header.num_vertexes);
-        for (Array<iqmPos_t>::iterator i = iqmPos.begin(); i != iqmPos.end(); ++i) {
-            istream_read_iqmPos(posStream, *i);
-        }
-
-        PointerInputStream normStream(buffer + ofs_normal);
-        Array<iqmPos_t> iqmNorm(header.num_vertexes);
-        for (Array<iqmPos_t>::iterator i = iqmNorm.begin(); i != iqmNorm.end(); ++i) {
-            istream_read_iqmPos(normStream, *i);
-        }
-
-        Array<iqmSt_t> iqmSt(header.num_vertexes);
-        PointerInputStream stStream(buffer + ofs_st);
-        for (Array<iqmSt_t>::iterator i = iqmSt.begin(); i != iqmSt.end(); ++i) {
-            istream_read_iqmSt(stStream, *i);
-        }
-
-        PointerInputStream triangleStream(buffer + header.ofs_triangles);
-        for (unsigned int i = 0; i < header.num_triangles; ++i) {
-            iqmTriangle_t triangle;
-            istream_read_iqmTriangle(triangleStream, triangle);
-            for (int j = 0; j < 3; j++) {
-                surface.indices().insert(inserter.insert(IQMVertex_construct(
-                        &iqmPos[triangle.indices[j]],
-                        &iqmNorm[triangle.indices[j]],
-                        &iqmSt[triangle.indices[j]])));
-            }
-        }
-    }
-
-    surface.setShader("");
-    surface.updateAABB();
+void IQMSurface_read( Model &model, const byte *buffer, ArchiveFile &file ){
+       iqmHeader_t header;
+       {
+               PointerInputStream inputStream( buffer );
+               istream_read_iqmHeader( inputStream, header );
+       }
+
+       int ofs_position = -1, ofs_st = -1, ofs_normal = -1;
+       PointerInputStream vaStream( buffer + header.ofs_vertexarrays );
+       for ( unsigned int i = 0; i < header.num_vertexarrays; i++ ) {
+               iqmvertexarray_t va;
+               istream_read_iqmVertexarray( vaStream, va );
+
+               switch ( va.type ) {
+               case IQM_POSITION:
+                       if ( va.format == IQM_FLOAT && va.size == 3 ) {
+                               ofs_position = va.offset;
+                       }
+                       break;
+               case IQM_TEXCOORD:
+                       if ( va.format == IQM_FLOAT && va.size == 2 ) {
+                               ofs_st = va.offset;
+                       }
+                       break;
+               case IQM_NORMAL:
+                       if ( va.format == IQM_FLOAT && va.size == 3 ) {
+                               ofs_normal = va.offset;
+                       }
+                       break;
+               }
+       }
+
+       PointerInputStream posStream( buffer + ofs_position );
+       Array<iqmPos_t> iqmPos( header.num_vertexes );
+       for ( Array<iqmPos_t>::iterator i = iqmPos.begin(); i != iqmPos.end(); ++i ) {
+               istream_read_iqmPos( posStream, *i );
+       }
+
+       PointerInputStream normStream( buffer + ofs_normal );
+       Array<iqmPos_t> iqmNorm( header.num_vertexes );
+       for ( Array<iqmPos_t>::iterator i = iqmNorm.begin(); i != iqmNorm.end(); ++i ) {
+               istream_read_iqmPos( normStream, *i );
+       }
+
+       Array<iqmSt_t> iqmSt( header.num_vertexes );
+       PointerInputStream stStream( buffer + ofs_st );
+       for ( Array<iqmSt_t>::iterator i = iqmSt.begin(); i != iqmSt.end(); ++i ) {
+               istream_read_iqmSt( stStream, *i );
+       }
+
+       PointerInputStream iqmMesh( buffer + header.ofs_meshes );
+       for ( unsigned int m = 0; m < header.num_meshes; m++ ) {
+               Surface &surface = model.newSurface();
+
+               iqmmesh_t iqmmesh;
+               istream_read_iqmMesh( iqmMesh, iqmmesh );
+
+               bool material_found = false;
+               // if not malformed data neither missing string
+               if ( iqmmesh.material <= header.num_text && iqmmesh.material > 0 ) {
+                       char *material;
+                       material = (char*) buffer + header.ofs_text + iqmmesh.material;
+
+                       if ( material[0] != '\0' ) {
+                               surface.setShader( material );
+                               material_found = true;
+                       }
+               }
+
+               if ( !material_found ) {
+                       // empty string will trigger "textures/shader/notex" on display
+                       surface.setShader( "" );
+               }
+
+               UniqueVertexBuffer<ArbitraryMeshVertex> inserter( surface.vertices() );
+               inserter.reserve( iqmmesh.num_vertexes );
+
+               surface.indices().reserve( iqmmesh.num_vertexes );
+
+               unsigned int triangle_offset = header.ofs_triangles + iqmmesh.first_triangle * sizeof( iqmTriangle_t );
+               PointerInputStream triangleStream( buffer + triangle_offset );
+               for ( unsigned int i = 0; i < iqmmesh.num_triangles; ++i ) {
+                       iqmTriangle_t triangle;
+                       istream_read_iqmTriangle( triangleStream, triangle );
+                       for ( int j = 0; j < 3; j++ ) {
+                               surface.indices().insert( inserter.insert( IQMVertex_construct(
+                                                                                                                          &iqmPos[triangle.indices[j]],
+                                                                                                                          &iqmNorm[triangle.indices[j]],
+                                                                                                                          &iqmSt[triangle.indices[j]] ) ) );
+                       }
+               }
+
+               surface.updateAABB();
+       }
 }
 
-void IQMModel_read(Model &model, const byte *buffer, ArchiveFile &file)
-{
-    IQMSurface_read(model, buffer, file);
-    model.updateAABB();
+void IQMModel_read( Model &model, const byte *buffer, ArchiveFile &file ){
+       IQMSurface_read( model, buffer, file );
+       model.updateAABB();
 }
 
-scene::Node &IQMModel_new(const byte *buffer, ArchiveFile &file)
-{
-    ModelNode *modelNode = new ModelNode();
-    IQMModel_read(modelNode->model(), buffer, file);
-    return modelNode->node();
+scene::Node &IQMModel_new( const byte *buffer, ArchiveFile &file ){
+       ModelNode *modelNode = new ModelNode();
+       IQMModel_read( modelNode->model(), buffer, file );
+       return modelNode->node();
 }
 
-scene::Node &IQMModel_default()
-{
-    ModelNode *modelNode = new ModelNode();
-    Model_constructNull(modelNode->model());
-    return modelNode->node();
+scene::Node &IQMModel_default(){
+       ModelNode *modelNode = new ModelNode();
+       Model_constructNull( modelNode->model() );
+       return modelNode->node();
 }
 
-scene::Node &IQMModel_fromBuffer(unsigned char *buffer, ArchiveFile &file)
-{
-    if (memcmp(buffer, "INTERQUAKEMODEL", 16)) {
-        globalErrorStream() << "IQM read error: incorrect ident\n";
-        return IQMModel_default();
-    } else {
-        return IQMModel_new(buffer, file);
-    }
+scene::Node &IQMModel_fromBuffer( unsigned char *buffer, ArchiveFile &file ){
+       if ( memcmp( buffer, "INTERQUAKEMODEL", 16 ) ) {
+               globalErrorStream() << "IQM read error: incorrect ident\n";
+               return IQMModel_default();
+       }
+       else {
+               return IQMModel_new( buffer, file );
+       }
 }
 
-scene::Node &loadIQMModel(ArchiveFile &file)
-{
-    ScopedArchiveBuffer buffer(file);
-    return IQMModel_fromBuffer(buffer.buffer, file);
+scene::Node &loadIQMModel( ArchiveFile &file ){
+       ScopedArchiveBuffer buffer( file );
+       return IQMModel_fromBuffer( buffer.buffer, file );
 }
index f706a998a290a653f45be03252227b29f22a95d5..8f48f3bb4b40694f64c908041adfe1bd084e1994 100644 (file)
@@ -1,31 +1,31 @@
 /*
-Copyright (C) 2001-2006, William Joseph.
-All Rights Reserved.
+   Copyright (C) 2001-2006, William Joseph.
+   All Rights Reserved.
 
-This file is part of GtkRadiant.
+   This file is part of GtkRadiant.
 
-GtkRadiant is free software; you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 2 of the License, or
-(at your option) any later version.
+   GtkRadiant is free software; you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation; either version 2 of the License, or
+   (at your option) any later version.
 
-GtkRadiant is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-GNU General Public License for more details.
+   GtkRadiant is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
 
-You should have received a copy of the GNU General Public License
-along with GtkRadiant; if not, write to the Free Software
-Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-*/
+   You should have received a copy of the GNU General Public License
+   along with GtkRadiant; if not, write to the Free Software
+   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
+ */
 
-#if !defined(INCLUDED_IQM_H)
+#if !defined( INCLUDED_IQM_H )
 #define INCLUDED_IQM_H
 
 namespace scene { class Node; }
 class ArchiveFile;
 
-scene::Node &loadIQMModel(ArchiveFile &file);
+scene::Node &loadIQMModel( ArchiveFile &file );
 
 
 #endif
index 4c0264687752505d4d707029b95779a251f97966..b6d896e342da1c9dce37945becd1178fcceffed3 100644 (file)
@@ -1,23 +1,23 @@
 /*
-Copyright (C) 2001-2006, William Joseph.
-All Rights Reserved.
+   Copyright (C) 2001-2006, William Joseph.
+   All Rights Reserved.
 
-This file is part of GtkRadiant.
+   This file is part of GtkRadiant.
 
-GtkRadiant is free software; you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 2 of the License, or
-(at your option) any later version.
+   GtkRadiant is free software; you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation; either version 2 of the License, or
+   (at your option) any later version.
 
-GtkRadiant is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-GNU General Public License for more details.
+   GtkRadiant is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
 
-You should have received a copy of the GNU General Public License
-along with GtkRadiant; if not, write to the Free Software
-Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-*/
+   You should have received a copy of the GNU General Public License
+   along with GtkRadiant; if not, write to the Free Software
+   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
+ */
 
 #include "plugin.h"
 
@@ -40,47 +40,43 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 
 class IQMModelLoader : public ModelLoader {
 public:
-    scene::Node &loadModel(ArchiveFile &file)
-    {
-        return loadIQMModel(file);
-    }
+scene::Node &loadModel( ArchiveFile &file ){
+       return loadIQMModel( file );
+}
 };
 
 class ModelDependencies :
-        public GlobalFileSystemModuleRef,
-        public GlobalOpenGLModuleRef,
-        public GlobalUndoModuleRef,
-        public GlobalSceneGraphModuleRef,
-        public GlobalShaderCacheModuleRef,
-        public GlobalSelectionModuleRef,
-        public GlobalFiletypesModuleRef {
+       public GlobalFileSystemModuleRef,
+       public GlobalOpenGLModuleRef,
+       public GlobalUndoModuleRef,
+       public GlobalSceneGraphModuleRef,
+       public GlobalShaderCacheModuleRef,
+       public GlobalSelectionModuleRef,
+       public GlobalFiletypesModuleRef {
 };
 
 class ModelIQMAPI : public TypeSystemRef {
-    IQMModelLoader m_modeliqm;
+IQMModelLoader m_modeliqm;
 public:
-    typedef ModelLoader Type;
+typedef ModelLoader Type;
 
-    STRING_CONSTANT(Name, "iqm");
+STRING_CONSTANT( Name, "iqm" );
 
-    ModelIQMAPI()
-    {
-        GlobalFiletypesModule::getTable().addType(Type::Name(), Name(), filetype_t("iqm models", "*.iqm"));
-    }
+ModelIQMAPI(){
+       GlobalFiletypesModule::getTable().addType( Type::Name(), Name(), filetype_t( "InterQuake Models", "*.iqm" ) );
+}
 
-    ModelLoader *getTable()
-    {
-        return &m_modeliqm;
-    }
+ModelLoader *getTable(){
+       return &m_modeliqm;
+}
 };
 
 typedef SingletonModule<ModelIQMAPI, ModelDependencies> ModelIQMModule;
 
 ModelIQMModule g_ModelIQMModule;
 
-extern "C" void RADIANT_DLLEXPORT Radiant_RegisterModules(ModuleServer &server)
-{
-    initialiseModule(server);
+extern "C" void RADIANT_DLLEXPORT Radiant_RegisterModules( ModuleServer &server ){
+       initialiseModule( server );
 
-    g_ModelIQMModule.selfRegister();
+       g_ModelIQMModule.selfRegister();
 }
index 2f338b602701eb586d6382fd978b2be106700d48..c6bfe6cead95bb5357902a7f82c878a18ded8ec9 100644 (file)
@@ -1,25 +1,25 @@
 /*
-Copyright (C) 2001-2006, William Joseph.
-All Rights Reserved.
+   Copyright (C) 2001-2006, William Joseph.
+   All Rights Reserved.
 
-This file is part of GtkRadiant.
+   This file is part of GtkRadiant.
 
-GtkRadiant is free software; you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 2 of the License, or
-(at your option) any later version.
+   GtkRadiant is free software; you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation; either version 2 of the License, or
+   (at your option) any later version.
 
-GtkRadiant is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-GNU General Public License for more details.
+   GtkRadiant is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
 
-You should have received a copy of the GNU General Public License
-along with GtkRadiant; if not, write to the Free Software
-Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-*/
+   You should have received a copy of the GNU General Public License
+   along with GtkRadiant; if not, write to the Free Software
+   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
+ */
 
-#if !defined(INCLUDED_SAMPLE_H)
+#if !defined( INCLUDED_SAMPLE_H )
 #define INCLUDED_SAMPLE_H
 
 #endif
index 8c663dc7523258c056868cad4eed8d5ea0b1e86c..4caeab57f8604f34dd2fd33db41c82577377a58a 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index 7d4788018a2df8eb9190bd8ec2072d75e6162d91..279e7302a120268cbb5ed93dc07097ab12ab3e9d 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index a2eaaf15d65f9969ebdffaf9213b08557adcb707..02e0be87c39cbb3a610852ab6268a99a4911b7e1 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index 25860c7777ad3277b7407e68a3b4ced015f1f490..f8d8e0d361a415c2e4996fd651a0cad789393e79 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index 165390de54f9630cd37642948ebafc9eff9bb3c4..f81aff94bd6d46a2daa0fc590e021cf4bedceb1a 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index 80bf1527074fe7b0200f14eeb9a94dc53c2169f0..934189f2cb034b481a3deb6ea450a5fe132ca2be 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index b3d67b29b692bdea06f1ef476186e452541096c4..d4a096ada034da1468e2f8fcb5320fa43dc8e202 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index 0f7ff877aacb47a401b964ce890cb232fa1a35ad..41cb344e38b2eb6c3bee5dbd519a5b0dffe52b35 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index b40b7cb94f320e9d8076aea2914f7395775acddb..bb5458c05790765fed9d4de381fdd17e0084f5f7 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index ab4141ced53baba9ea3984b30fb788100b02205b..8bc9cafc79826113ead9e67da0487cf5eec465e8 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index f218f0c0f04de513b553924fe057d6ec0ae921bb..25d5f8283fad410d585d0989dc4516f30adfc9fb 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index 497cf8938193c470f0ff5266d7e79144e9b74e88..1999b71fdd94d2c5c665d8726ac79ddfb0c91f54 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index 71687a03ca139de6e953e742de9be1f20469c835..cd413805b9acda86e4628818a07fb38720161730 100644 (file)
@@ -1,6 +1,6 @@
 /* -------------------------------------------------------------------------------
 
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index ab83418ac69738a7355972edad3e13bbf5071a62..9d45084169aef84daffa45dc4a7a591f459a3409 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index 5254248aae7b69c769432f03a680c64ff87e3f5e..a0eb3f0923a454fd1461aba4b1dd48317c5ca4c3 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index 7f7b3cafd2384080fb2ac3f5357585fd4e4dce7d..decd226a343c684ab9ec41687e875bbefcbf7c69 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index 39b646afb5a67e8b9fc3ad2accbf4bb062843b39..a677a22adbaa0233056accde8af760cefd51b25b 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index 9069de714f07a3dfe99d5e7eb1e0ffc6e3d3a28e..2f3f3eecf078a36d07b46fbf5e86d2335e1eef33 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index 39c2717b11c724b372c3f927f166ca68763d2af2..306533be696e61394a29e935937b99a8408b8e70 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index f45e185551cc48e749780dfeddbe72295cc5f63b..d648e99e490b07165e6117fdc484207eb97613f7 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index 7bded9d7a82fdbb5c98da202b17835c1dd878eed..cbe23ccf8f8d9fd7f968ce0394d1367d5fa96c8c 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index 5dbe002f8607b587a3548a4a022609d47465ac46..6ff4a853d2ab44427b5da3445c89a25e8fc7f142 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index 1be89836d000f8b7acd15ae4430e5bfa8893ae5b..3ca734bbcfbb9ac8c9a97ae0e85caca04a9862b7 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index 0b0bda93d29f30ca869690a37f293fb466999c5e..bc6f340afb86c14650f20599699c25dca4ad7c01 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index 1675a61bede9ff621b49950d6fad3e1ec0545f0a..15bb095fdc7aa5ba57bd8da266766514207ba849 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index 587e19025139c80249533ead727ee148d872d613..4a4cac053d49bf0e7dc00af7891dd07cfb9edd0e 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index 55c8becf834ac50085959b75bfe654946c21279c..0f08d1e3f29e0c3917360c7ca1c31bdb0fa0d530 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index 0cd600dbc25a3e36b45ddd1388330329c17258fc..731ca685aa9f288c704e34ca6649ba658a636c49 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index e78b3fbf42d4c8c975e4319d198749837d5c2c5d..d8034a047c0558423a8eb74e35355d8a9449b6a5 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index 0e7636032315254a649db6184fd620b9c68a9aff..8d82b6da2d7f5e3f593036203d9c0cf7439d7cd0 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index c335dd34272753c1c6fe17e68c7c2c3035a1f4f9..fb85403b0a128a4750eae2b12bfaa10fe3b3d95e 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index ed68ccae676a346317c2faaaa3bce6da45b48ec2..f812393e784c71e4ef5dda9ac5d7f440e6e9ea5e 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index bd4817634fa7fcbc4fb69420af3f30d2e53dacfa..398a8aab09286a5d5bff4a134c491ae0d2739ef8 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index 1e8b91c88ec566800a180704d5706bed708ef224..4782b80a252f588160f0359b4ce75765211b706b 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index b26c75f978777ced51eb23807332c425c9f0242d..d2d9652717e27947c72f976b5f37ecbfc2ca8ee4 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index c15916b7e92e6442835512a7eaa953431058fded..06a36e8af49c08c8a9a700895119f8218e230a32 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index 8344f3880e0fa2d5f54c1b1fd4d2fa46ba8b6bc9..644f7b9e88fda0a536d8eaaa01fef6c974823666 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index 128fb7ab1576f74871102144dce0d151c8018cbc..0f4591b04bb9a37db65afcc880196fcc1fac5f32 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index d803354c8e9865f5cee54f662b1a0037d664427f..8f3ef9e037803dcd880fb2a5b180a7db3c6f165d 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index 0ae19f24cb36c279bd871b8b92ac6014be43624b..c17b5bb9e01cd47b632f72dad55b7fc90adf7c6e 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index 061a2e3feb8b5e07cdf83401f4134915062f2d63..7f5df16c61b58d4464f96194445577ecac2e6b4a 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index f942d1c4eb91ae8f93b6bface59f50f105854888..ce1dd103ba56c90d5dd41200aa2bf244b34f4761 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index 7ee1e8c79892af987258e4e22cbb4ef4256be6d4..07e0d24756e602f5ff6eb3487970c9c630203078 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index c7ac4f60073f905422612a3a908078b1ba9b0b76..c43fabbb664fad8445e49f7bee9458b657244b94 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index af1edfa2c4a43fa56c7f900d0e460e659f06a944..8425022f4f066704362e5dfa119993924fd1e405 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index c73f62293ba5a1a1373e4192e272c51bc27a758a..89658abd24ac412c5815c10417c15a092be89f17 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index 0d3c6a480c371ff5aa09dd36e9a5cbf658c71aef..c116b20f5c1fcf697bfb455050e379f3f146d53b 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index 4c87760082ee0fe50028c02c21d6c92033f27771..00f30e05701dd2389ed641576cb42f04d1e19c23 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index 8b9614ddc7211a4c712dcce675c98bbc8b5536c2..848e67524ded7821bd144994c0e59a24f85d5b0a 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index c3923ad34ec0207a0d52563bf6cacdf9565f7e76..1d9f6c78d48c650816a798d2581a674b81660ad1 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index bcb0e5ce25515c4f5888da3f03a899eab1bb7a01..8d06be4c41468e4b801b770163b79ba97cb40feb 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index 16eb00c687db7106b27728cdb0503aad580bb676..38aa1f5fcb10cf420d081de51255af5f8f9fa70f 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index fa9085c135974461ae60f44545bba85c291a9701..00e89547996b358fc347d69429bf49264d44a8a7 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index 0fc06757bb5ea48d515887646b669d7c7ae36415..b6fe51173cb3a3121c8fd5c6a1cb472ddebd8be2 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index 387ee191d1980ab3a1e529edd73f4c1eee0ab582..aad74eaac69483b55d0007ed431d11b8ffcefea2 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index fbcd21dd710ae096f0531d2e092ea739790b2778..a7619325cba14b7fbf0548106f3c9956e9e30804 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index 9c531b2614ba367d2a56f68be2125bdda08d7701..36ea3b1fb56865df47f6e3c5d7afa0112c9fa5d0 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index 8aef344cfba4edc447311bbdc8249729e66a1af5..65e92ef14c6affa9c8d9190afb47db325f0fc36f 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index 066a52239a06b896f24f1e2a138e706e3c66ce9d..412aefe88062523444e3f071a037e8f8fb0c7c70 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index f76ae1458ede551883a6897969b86fc8be572b72..add0ef30ae3ae992b1e955dcf799c40699d9b932 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index 6585147a47e678bd94c869013fc55021e873d965..f66659b559dd50c93161b0a7d01cf41b0f1c50f9 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index e67106ebe821d09220838e6f2011661e7341a38b..7a49c52e8e26748d7430381cae21bbe58dc8e6ad 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index b66ccb77789d73516802da5c0d6d4b18106d48a8..b8b1aa3da84b498cf46d6aa0e2d34d2ac5b40797 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index 7e6cc468e77470b731f69775265e8b112244b687..6027a69502114728c3981411cf4996826654deb1 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index 165390de54f9630cd37642948ebafc9eff9bb3c4..f81aff94bd6d46a2daa0fc590e021cf4bedceb1a 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index 80bf1527074fe7b0200f14eeb9a94dc53c2169f0..934189f2cb034b481a3deb6ea450a5fe132ca2be 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index 3c4c5d363557007787a654a5b6a4ebc1d0845e44..708577a13e3fde1139629e859aeb7424cf70b07e 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index 0c2f634ffda84965f404a53926036e4bb486fc7c..0b1b5379104a9e10ad8faee7070d259d02533ae0 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index 8b0abd24b73941f626aa3f00a7d954fd2f506f29..7eabd19cccbf5df8543332c273e1ef46142a3de9 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index 489afc868a09c011036504371ef36c37c2c15bc8..5ee2909f59abab0c17e0ae5e940dc7ea5efbdf45 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index ae61e4b3a9ce0a7364160e3c964153da50c7a33f..8243d86d682da5bb43c799185e2acd8ae5bb8546 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index 7ae3c07445b89f4d6c0aec6f484d709970c1aa12..cd989ea3f65c9579ac89d3df1853c961600633ba 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index ce5ef54019456af1dc830d7fd9bf7e9b3a071f13..1447037759aec6699c8b3d3516156c17c38b0a3d 100644 (file)
@@ -1,6 +1,6 @@
 /* -------------------------------------------------------------------------------
 
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index fa38efe1e5ee72dc570b374154b8a3453c7936bf..af5df499e84037eee47cf4f4f9d3b61aa0bf5eaf 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index a6820aadfc37f4a90283b49c6158c298d54cb85d..00b7b39425abb17c0b2034354e1c61bc9de87f2c 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index 4abe741b82731d53893983125f64aac817530cc3..53452f367be82c2a01cc366eda23b203eab31612 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index fd20cc990429dfa55ee099b5884350dd701b11d1..bee4b4fccf113028f47120168768b4821693790f 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index 925fcfd18e41bee3d6426c1f40b1cd4b597600da..af5e57165c83e629400a14a7037158e4b4e8e257 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index 737b47f81e19beb5bb3e5151bb769c1fc2f00ab6..8c441c8be9020d63b1bbd34efb9b9f629dc2f45c 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index 31a6ca9f6faf0357ef387cebc7b40678db2cddf0..0ee1e2d5203b1409338b992a5c84717cf4970368 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index a14bcd71f1e02265388f595237fb24e1c15c0d8e..632cfe40873b56ba4cf17c232f7a609c91a2e5dc 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index 345aca02d1e64ee8d30f72c4792c72b798b76358..6dca1a1a8a0d3718f837022d9ecf77d792e715a0 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index 847b80909b89d43e0603f709650616ebcb120c5e..29acab6faf6400a79bf83d9f13d398b51689de0f 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index 1e3e82c16b31bea9d0d9758b2531a553d39d629a..8dfd6d284255b8f4fc5be4dafaba3197841ca6a8 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index e764a63ba33ffd8015e5e90596b33e829affb188..7d8df18af26e06019347ef2f7a990d5d1c96e211 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index 6131c5d0c945b30607011eff4387cbf9c98b3e6a..a7138b11184be12bd9f6fcb2899e6f549f411189 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index 7879733f151c04d1eac8257b9bd0d33c333a535a..de8b802a69be11c79205e33bf3dbe6fc9d00ad47 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index e6e935f3b9b978843cc0bcf24a5e4d1d0bfddc4a..264d31753f8ece2bed03daffa8000ced30cb2524 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index 960225f64685bcea46901562182df712a2fe383e..f8e64bf5c17660f271ef2bc44007fbb6e8ab9bbe 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index 223368172a1df0a62335ef051e9f4f754fea6589..244f24acdb5d2b621d0f9fe9c05a8f89a6d7b5e2 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index ca1f1fb733a91eb2d07214672c0430fc39e9b2d9..e9e91c27c175abeb5c16645b32e5f576aff8a96b 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index 0d095c442ab62ad7200f4e0eed2ab89135105b28..b0baf31476b420a67c2b34a7e2653f830a91143a 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index 9ef9705b4a52a5000dd20d96d729effbe5cd55ee..e54ad223275f109ac23d435b553ca0a679753bf7 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index 8acd7c2119d7897c26d8cfa3a45c35cac29c4ff8..98184e870bd0cf14bdf29dc2f845d88c7dc4639e 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index f1352d31437b0b08b888000186ce7f60249a364e..e2ebfa8d276ae6f37eca95fdeb44f702432e6ac6 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index b326e8201bcb2460b4eababcf5d2b392915ddde2..e1f2559189415eb2c7d6534469593f6ef5d60a7a 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index 9f7166e9d5b556c69f1da175efefa33b3eaddea6..9151183fb32a29242a103f8e2578b0a380424a10 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index c980b544a58e409028a5cd865b7190c61387cc67..cbe69dd1e61f93243501cb8066c3f8e2eee2c57d 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index f787779c6a1a8ec2b8fe5c93847105fb964dffcc..4d0648c1a58bbe86de09cd4863ea3cdac30f358a 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index e426f69776a21e351800e43769b273ec47190b7d..7be9740dc4bb46ff0ba4556b5d5213f03395f55d 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index 3454e355f4d633e8c12d16181da9715871ab771d..747c4d43230cf8e56f1036bb8dbad6e6f807ca3c 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index 2b5a40bb3612d77f1dec43728a59f8b2b05b4134..2eb014098143da7afe808bb70179244b080c4e86 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index 579931ae9b4c6d189ebddeeed2461a999e36a78a..be82d7866024453b5d5bdf1f550f32c76a5d2135 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index 7025ceb5b608d97ef42369ff706422cd8d05523d..453cb77a59066b85fbf04ccfd54011addf5ef207 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index aba4a0c889c860ca890244787e1b0a9bf016a163..9d7fe961bd74e6028f1bf7aa8719203cfcb0979e 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index bd4a03da6edc821c6ad75440ce0962c29881fa5a..286fb07197bab92f45d501fd8626fcd893127356 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index 4001078d5adc443c46355cb65ac1996417e5a056..97e2a1f8cae14c9c5df97b67524d3735b413b98e 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index 55ef01b072f6c1779712198bad5d6d2f461c0b6b..7765c57995790dfa72377ab267bb47e45b715c1d 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index 3e1f8f04c13805dc115ed177a60cd0496fdd6f1c..5ec53a9e60f6db05dfd3c1786edebead27a98483 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index 67d97547b62baaeed0339f34814f9473d2117e97..0cfa6067098dcc295e0c4af988c68e5ac7466b45 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index 098e6a1452ca1333866a566dc595c243808b2dba..ecb9d0960afc809c4338857216b4a7751a8abdbb 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index 63811395b22d0b6c35047c3b631c3c59966d2769..14865af310431c834b4a500f2751c10fd9965198 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index f42128be75fd7390d771f4d75029c267ef79b6a0..ad86c1ee1d5253ddc0db40df7a1b587f23d0a284 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index 75674a017c93e491c009355bbca76bd6a70338f1..58cc369f1ffe85e9edf644219dfc367fc4d72cb2 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index 8ebb5fe240c4b7b3fd6e1a0171e1ce422f89d8c7..51bf46201ccce52b76780291d2065d820da2fefc 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index 314fdc5e90d1b3e0bea29a660033dcd544172170..4961647e248970ba6cc218d4168451b7ba2fc3bd 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index 2f5f015a51ebbb518dd44f592180e8ab15d6b15f..f9a254db1fbda700661615d807378d44063e85a7 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index 8bc0fc8d6b2eb0ddddfb1e803bb386cd301e49a2..4fc45bd6af7d347f9d6bbf4d44e7c9c8e555f944 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index 1f08a2d5bfb5e566ea9fcd18bc4f5d69fcad2f10..a6f8679e389c70141e0f06a70d8e56d7390db0eb 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index 6ff815abcb0b9295ea7122a328c21eb427a0714f..b74c7b3362ba47b5bfeaa1edfff692bf8fbf5c63 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index 9cbb5e5052385a5851fdadbee2a42d1a007db2e8..b57c81a9e760bef4c87512081236027c2740698b 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index 3a5902924879880f863cb0fed11408bfbeb17ccf..5bc5ff71df9a0e2fee1c039f4224d2f300d17057 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
@@ -1172,7 +1172,7 @@ void WriteTGA( const char *filename, byte *data, int width, int height ) {
 
 void WriteTGAGray( const char *filename, byte *data, int width, int height ) {
        byte buffer[18];
-       FILE    *f;
+       FILE *f;
 
        memset( buffer, 0, 18 );
        buffer[2] = 3;      // uncompressed type
index 8c00f7ce15891718cc4d61cc6d9c61c88f10a878..2c028bfd9d58e3cbcfa5460006b855e20fba81ce 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index f05b0bc9105e2f2994b0f43436be2d2631461f7b..58d42ed58fcee12321697918c90887b45ff37607 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
@@ -152,7 +152,7 @@ void xml_Select( char *msg, int entitynum, int brushnum, qboolean bError ){
        xmlNodeSetContent( node, (xmlChar*)buf );
        level[0] = (int)'0' + ( bError ? SYS_ERR : SYS_WRN )  ;
        level[1] = 0;
-       xmlSetProp( node, (xmlChar*)"level", (xmlChar *)&level );
+       xmlSetProp( node, (xmlChar*)"level", (xmlChar*)&level );
        // a 'select' information
        sprintf( buf, "%i %i", entitynum, brushnum );
        select = xmlNewNode( NULL, (xmlChar*)"brush" );
index 10d399f7b75fbddce2cb46844fc2a36ae4179d81..eae54d3baffd26e1db521551c428d39ff8c37914 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index 5d775e80f0d0b0f9da5bfe0656d06fbc58fd0781..5e340b9da166c4dbef7349ebd9d904f4efe813dc 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index cc5cddabe5454c4b5a11f3b088bd263e29f4e97e..98ed502876bacf7c432ed713f1829c2a21e47ecc 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index 1d0a354effbec20b41f4dd4cfc36eb50f15d7fe8..d44226761b13237608732e24c724ea1e67e114d8 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index ca8da18db23ae031c0cdf060557432c1915ce227..cbc23f66ab7482d2c4a25f868c6209d27dcdf615 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index c7b85dd3aa818192b38d75de6ac0824cc7d3b270..bef8fbd4d917313a0880d335a58daf75e3744641 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
@@ -19,7 +19,6 @@
    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
-
 #include "cmdlib.h"
 #include "mathlib.h"
 #include "inout.h"
@@ -542,7 +541,7 @@ winding_t   *ReverseWinding( winding_t *w ){
    =============
  */
 void    ClipWindingEpsilonStrict( winding_t *in, vec3_t normal, vec_t dist,
-                                                                 vec_t epsilon, winding_t **front, winding_t **back ){
+                                                       vec_t epsilon, winding_t **front, winding_t **back ){
        vec_t dists[MAX_POINTS_ON_WINDING + 4];
        int sides[MAX_POINTS_ON_WINDING + 4];
        int counts[3];
index 19603649853544f6916db4f876bb0a086e64ca59..08bf9aafadcd15475b3cfd4fa75bfceb1199bd59 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index 62114f36f5dd0382635f5ef39d2d9b19f3fccce0..089d0e6c55d0aed0857b0961e72fa3ee25fe3a04 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index ddb363145a590cdd21a8e81e4504d29f127dd13c..202351c31e433c7695206e9a1b1db6304c63bd82 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index 624cebde23cceb9273946b5fd8796be399acf03b..823cb63a3167f7c14e18cf0f7840e1c6a500d2e9 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index 359a078dcfce541b4795cc3768ad42adc00f38a1..3c91386cb56f749631380fc611faf0f8d56b8901 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
@@ -58,6 +58,7 @@ qboolean tokenready;                     // only qtrue if UnGetToken was just ca
  */
 void AddScriptToStack( const char *filename, int index ){
        int size;
+       void* buffer;
 
        script++;
        if ( script == &scriptstack[MAX_INCLUDES] ) {
@@ -65,10 +66,11 @@ void AddScriptToStack( const char *filename, int index ){
        }
        strcpy( script->filename, ExpandPath( filename ) );
 
-       size = vfsLoadFile( script->filename, (void **)&script->buffer, index );
+       size = vfsLoadFile( script->filename, &buffer, index );
 
        if ( size == -1 ) {
                Sys_Printf( "Script file %s was not found\n", script->filename );
+               script--;
        }
        else
        {
@@ -78,11 +80,12 @@ void AddScriptToStack( const char *filename, int index ){
                else{
                        Sys_Printf( "entering %s\n", script->filename );
                }
-       }
 
-       script->line = 1;
-       script->script_p = script->buffer;
-       script->end_p = script->buffer + size;
+               script->buffer = buffer;
+               script->line = 1;
+               script->script_p = script->buffer;
+               script->end_p = script->buffer + size;
+       }
 }
 
 
index 330e2f653418c50e1903328380d39c91a9cf28c3..dc9b2348aac1d9d11ac40703ad27c1af2d634d04 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index e9f1b5cc2718d91af2f89020642943211f36ed40..12b9c2561aa82312cee1897599f3e236e1da5650 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index 537732fbd7feb5faaf36658abd408d30f7c58281..054dc746625ef214d0b73ecc65793160db865cc6 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
@@ -577,7 +577,7 @@ void RunThreadsOn( int workcnt, qboolean showpacifier, void ( *func )( int ) ){
                for ( i = 0 ; i < numthreads ; i++ )
                {
                        /* Default pthread attributes: joinable & non-realtime scheduling */
-                       if (pthread_create(&work_threads[i], &attr, (void *(*)(void *)) func, (void*)(size_t)i ) != 0 ) {
+                       if ( pthread_create(&work_threads[i], &attr, (void *(*)(void *)) func, (void*)(uintptr_t)i ) != 0 ) {
                                Error( "pthread_create failed" );
                        }
                }
@@ -627,7 +627,6 @@ void ThreadUnlock( void ){
    =============
  */
 void RunThreadsOn( int workcnt, qboolean showpacifier, void ( *func )( int ) ){
-       int i;
        int start, end;
 
        dispatch = 0;
index 76d35dce70cf878b2eba6be1194bb98017b51d25..5f403418ff449077f8c7a2f1a83d5451ac0b4278 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index ad14dec857bdc215e23d0a67b4dc6f9b1fc6e774..47dc14bf97d3f5198ed53d85473fda56e6add86d 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index 65a8b6f4275b84f249cb517e8facd6b463cbb826..16a78289817b017de067257c6690ada8feed61b8 100644 (file)
@@ -123,6 +123,7 @@ static void vfsInitPakFile( const char *filename ){
        for ( i = 0; i < gi.number_entry; i++ )
        {
                char filename_inzip[NAME_MAX];
+               char *filename_lower;
                unz_file_info file_info;
                VFS_PAKFILE* file;
 
@@ -140,9 +141,10 @@ static void vfsInitPakFile( const char *filename ){
                g_pakFiles = g_slist_append( g_pakFiles, file );
 
                vfsFixDOSName( filename_inzip );
-               g_strdown( filename_inzip );
+                //-1 null terminated string
+               filename_lower = g_ascii_strdown( filename_inzip, -1 );
 
-               file->name = strdup( filename_inzip );
+               file->name = strdup( filename_lower );
                file->size = file_info.uncompressed_size;
                file->zipfile = uf;
                file->zippos = pos;
@@ -153,6 +155,7 @@ static void vfsInitPakFile( const char *filename ){
                                break;
                        }
                }
+               g_free( filename_lower );
        }
 }
 
@@ -271,17 +274,18 @@ void vfsShutdown(){
 int vfsGetFileCount( const char *filename ){
        int i, count = 0;
        char fixed[NAME_MAX], tmp[NAME_MAX];
+       char *lower;
        GSList *lst;
 
        strcpy( fixed, filename );
        vfsFixDOSName( fixed );
-       g_strdown( fixed );
+       lower = g_ascii_strdown( fixed, -1 );
 
        for ( lst = g_pakFiles; lst != NULL; lst = g_slist_next( lst ) )
        {
                VFS_PAKFILE* file = (VFS_PAKFILE*)lst->data;
 
-               if ( strcmp( file->name, fixed ) == 0 ) {
+               if ( strcmp( file->name, lower ) == 0 ) {
                        count++;
                }
        }
@@ -289,12 +293,12 @@ int vfsGetFileCount( const char *filename ){
        for ( i = 0; i < g_numDirs; i++ )
        {
                strcpy( tmp, g_strDirs[i] );
-               strcat( tmp, fixed );
+               strcat( tmp, lower );
                if ( access( tmp, R_OK ) == 0 ) {
                        count++;
                }
        }
-
+       g_free( lower );
        return count;
 }
 
@@ -302,6 +306,7 @@ int vfsGetFileCount( const char *filename ){
 int vfsLoadFile( const char *filename, void **bufferptr, int index ){
        int i, count = 0;
        char tmp[NAME_MAX], fixed[NAME_MAX];
+       char *lower;
        GSList *lst;
 
        // filename is a full path
@@ -339,7 +344,7 @@ int vfsLoadFile( const char *filename, void **bufferptr, int index ){
        *bufferptr = NULL;
        strcpy( fixed, filename );
        vfsFixDOSName( fixed );
-       g_strdown( fixed );
+       lower = g_ascii_strdown( fixed, -1 );
 
        for ( i = 0; i < g_numDirs; i++ )
        {
@@ -385,15 +390,15 @@ int vfsLoadFile( const char *filename, void **bufferptr, int index ){
        {
                VFS_PAKFILE* file = (VFS_PAKFILE*)lst->data;
 
-               if ( strcmp( file->name, fixed ) != 0 ) {
+               if ( strcmp( file->name, lower ) != 0 ) {
                        continue;
                }
 
                if ( count == index ) {
 
-            if ( unzGoToFilePos( file->zipfile, &file->zippos ) != UNZ_OK ) {
-                return -1;
-            }
+               if ( unzGoToFilePos( file->zipfile, &file->zippos ) != UNZ_OK ) {
+                       return -1;
+               }
                        if ( unzOpenCurrentFile( file->zipfile ) != UNZ_OK ) {
                                return -1;
                        }
@@ -408,12 +413,13 @@ int vfsLoadFile( const char *filename, void **bufferptr, int index ){
                                return -1;
                        }
                        else{
+                               g_free( lower );
                                return file->size;
                        }
                }
 
                count++;
        }
-
+       g_free( lower );
        return -1;
 }
index 296bba4e3dec741804098adecc6fa9e209a771fa..3e37f5e4b7217e15c9193849610c1e156fc86c65 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
@@ -47,7 +47,7 @@ static int ReadString( FILE *fp, char *buffer ){
        return bytesRead;
 }
 
-static int ReadChunkAndLength( FILE *fp, short *chunk, long *len ){
+static int ReadChunkAndLength( FILE *fp, unsigned short *chunk, long *len ){
        if ( fread( chunk, sizeof( short ), 1, fp ) != 1 ) {
                return 0;
        }
@@ -58,7 +58,7 @@ static int ReadChunkAndLength( FILE *fp, short *chunk, long *len ){
 }
 
 static void LoadMapName( FILE *fp, char *buffer, int thisChunkLen ){
-       short chunkID;
+       unsigned short chunkID;
        long chunkLen;
        long bytesRead = 0;
 
@@ -82,7 +82,7 @@ static void LoadMapName( FILE *fp, char *buffer, int thisChunkLen ){
 
 static void LoadMaterialList( FILE *fp, long thisChunkLen, _3DSMaterial_t *pMat ){
        long chunkLen;
-       short chunkID;
+       unsigned short chunkID;
        long bytesRead = 0;
        _3DSMaterial_t mat;
        char curdir[1024];
@@ -230,7 +230,7 @@ static void LoadMeshMaterialGroup( FILE *fp, long thisChunkLen, _3DSMeshMaterial
 
 static void LoadNamedTriObject( FILE *fp, long thisChunkLen, _3DSTriObject_t *pTO ){
        long chunkLen;
-       short chunkID;
+       unsigned short chunkID;
        int i = 0;
        long bytesRead = 0;
        _3DSTriObject_t triObj;
@@ -347,7 +347,7 @@ static void LoadNamedTriObject( FILE *fp, long thisChunkLen, _3DSTriObject_t *pT
 
 static void LoadNamedObject( FILE *fp, long thisChunkLen, _3DSNamedObject_t *pNO ){
        long chunkLen;
-       short chunkID;
+       unsigned short chunkID;
        int i = 0;
        long bytesRead = 0;
        char name[100];
@@ -391,7 +391,7 @@ static void LoadNamedObject( FILE *fp, long thisChunkLen, _3DSNamedObject_t *pNO
 }
 
 static void LoadEditChunk( FILE *fp, long thisChunkLen, _3DSEditChunk_t *pEC ){
-       short chunkID;
+       unsigned short chunkID;
        long chunkLen;
        long bytesRead = 0;
        _3DSEditChunk_t editChunk;
@@ -451,7 +451,7 @@ static void LoadEditChunk( FILE *fp, long thisChunkLen, _3DSEditChunk_t *pEC ){
 
 static void Load3DS( const char *filename, _3DS_t *p3DS, qboolean verbose ){
        FILE *fp;
-       short chunkID;
+       unsigned short chunkID;
        long chunkLen;
        _3DSEditChunk_t editChunk;
 
index 68c3c24f21ce55ff10cf3389a625feba2b01f34a..8a8a34c49fbf6d4f2481005874f2696af5d50037 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
@@ -88,52 +88,52 @@ typedef struct
        _3DSEditChunk_t editChunk;
 } _3DS_t;
 
-#define _3DS_CHUNK_NULL                     ((short) 0x0000)
-#define _3DS_CHUNK_UNKNOWN0                 ((short) 0x0001)
-#define _3DS_CHUNK_M3D_VERSION              ((short) 0x0002)
-#define _3DS_CHUNK_M3D_KFVERSION            ((short) 0x0005)
-#define _3DS_CHUNK_COLOR_F                  ((short) 0x0010)
-#define _3DS_CHUNK_COLOR_24                 ((short) 0x0011)
-#define _3DS_CHUNK_LIN_COLOR_24             ((short) 0x0012)
-#define _3DS_CHUNK_LIN_COLOR_F              ((short) 0x0013)
-#define _3DS_CHUNK_INT_PERCENTAGE           ((short) 0x0030)
-#define _3DS_CHUNK_FLOAT_PERCENT            ((short) 0x0031)
-#define _3DS_CHUNK_MASTER_SCALE             ((short) 0x0100)
-#define _3DS_CHUNK_CHUNK_TYPE               ((short) 0x0995)
-#define _3DS_CHUNK_CHUNK_UNIQUE             ((short) 0x0996)
-#define _3DS_CHUNK_NOT_CHUNK                ((short) 0x0997)
-#define _3DS_CHUNK_CONTAINER                ((short) 0x0998)
-#define _3DS_CHUNK_IS_CHUNK                 ((short) 0x0999)
-#define _3DS_CHUNK_C_SXP_SELFI_MASKDATA     ((short) 0x0c3c)
-
-#define _3DS_CHUNK_BITMAP                   ((short) 0x1100)
-#define _3DS_CHUNK_USE_BITMAP               ((short) 0x1101)
-#define _3DS_CHUNK_SOLID_BGND               ((short) 0x1200)
-#define _3DS_CHUNK_USE_SOLID_BGND           ((short) 0x1201)
-
-#define _3DS_CHUNK_EDIT                     ((short) 0x3d3d)
-#define _3DS_CHUNK_MESH_VERSION             ((short) 0x3d3e)
-
-#define _3DS_CHUNK_NAMED_OBJECT             ((short) 0x4000)
-#define _3DS_CHUNK_NAMED_TRI_OBJECT         ((short) 0x4100)
-#define _3DS_CHUNK_POINT_ARRAY              ((short) 0x4110)
-#define _3DS_CHUNK_POINT_FLAG_ARRAY         ((short) 0x4111)
-#define _3DS_CHUNK_FACE_ARRAY               ((short) 0x4120)
-#define _3DS_CHUNK_MSH_MAT_GROUP            ((short) 0x4130)
-#define _3DS_CHUNK_TEX_VERTS                ((short) 0x4140)
-#define _3DS_CHUNK_SMOOTH_GROUP             ((short) 0x4150)
-#define _3DS_CHUNK_MESH_MATRIX              ((short) 0x4160)
-#define _3DS_CHUNK_MAGIC                    ((short) 0x4d4d)
-
-#define _3DS_CHUNK_MAT_NAME                 ((short) 0xa000)
-#define _3DS_CHUNK_TEXMAP                   ((short) 0xa200)
-#define _3DS_CHUNK_SPECMAP                  ((short) 0xa204)
-#define _3DS_CHUNK_OPACMAP                  ((short) 0xa210)
-#define _3DS_CHUNK_REFLMAP                  ((short) 0xa220)
-#define _3DS_CHUNK_BUMPMAP                  ((short) 0xa230)
-#define _3DS_CHUNK_MAT_MAPNAME              ((short) 0xa300)
-#define _3DS_CHUNK_MAT_LIST                 ((short) 0xafff)
-
-#define _3DS_CHUNK_KEYFRAME_DATA            ((short) 0xb000)
+#define _3DS_CHUNK_NULL                     0x0000
+#define _3DS_CHUNK_UNKNOWN0                 0x0001
+#define _3DS_CHUNK_M3D_VERSION              0x0002
+#define _3DS_CHUNK_M3D_KFVERSION            0x0005
+#define _3DS_CHUNK_COLOR_F                  0x0010
+#define _3DS_CHUNK_COLOR_24                 0x0011
+#define _3DS_CHUNK_LIN_COLOR_24             0x0012
+#define _3DS_CHUNK_LIN_COLOR_F              0x0013
+#define _3DS_CHUNK_INT_PERCENTAGE           0x0030
+#define _3DS_CHUNK_FLOAT_PERCENT            0x0031
+#define _3DS_CHUNK_MASTER_SCALE             0x0100
+#define _3DS_CHUNK_CHUNK_TYPE               0x0995
+#define _3DS_CHUNK_CHUNK_UNIQUE             0x0996
+#define _3DS_CHUNK_NOT_CHUNK                0x0997
+#define _3DS_CHUNK_CONTAINER                0x0998
+#define _3DS_CHUNK_IS_CHUNK                 0x0999
+#define _3DS_CHUNK_C_SXP_SELFI_MASKDATA     0x0c3c
+
+#define _3DS_CHUNK_BITMAP                   0x1100
+#define _3DS_CHUNK_USE_BITMAP               0x1101
+#define _3DS_CHUNK_SOLID_BGND               0x1200
+#define _3DS_CHUNK_USE_SOLID_BGND           0x1201
+
+#define _3DS_CHUNK_EDIT                     0x3d3d
+#define _3DS_CHUNK_MESH_VERSION             0x3d3e
+
+#define _3DS_CHUNK_NAMED_OBJECT             0x4000
+#define _3DS_CHUNK_NAMED_TRI_OBJECT         0x4100
+#define _3DS_CHUNK_POINT_ARRAY              0x4110
+#define _3DS_CHUNK_POINT_FLAG_ARRAY         0x4111
+#define _3DS_CHUNK_FACE_ARRAY               0x4120
+#define _3DS_CHUNK_MSH_MAT_GROUP            0x4130
+#define _3DS_CHUNK_TEX_VERTS                0x4140
+#define _3DS_CHUNK_SMOOTH_GROUP             0x4150
+#define _3DS_CHUNK_MESH_MATRIX              0x4160
+#define _3DS_CHUNK_MAGIC                    0x4d4d
+
+#define _3DS_CHUNK_MAT_NAME                 0xa000
+#define _3DS_CHUNK_TEXMAP                   0xa200
+#define _3DS_CHUNK_SPECMAP                  0xa204
+#define _3DS_CHUNK_OPACMAP                  0xa210
+#define _3DS_CHUNK_REFLMAP                  0xa220
+#define _3DS_CHUNK_BUMPMAP                  0xa230
+#define _3DS_CHUNK_MAT_MAPNAME              0xa300
+#define _3DS_CHUNK_MAT_LIST                 0xafff
+
+#define _3DS_CHUNK_KEYFRAME_DATA            0xb000
 
 void _3DS_LoadPolysets( const char *filename, polyset_t **ppPSET, int *numpsets, qboolean verbose );
index e09975b2378aa62c57cea2365e8735fcf40896eb..ce442ced4471f5b75c757a93ba2437b9fbcc1c20 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index 54e75e4f3de759dae23fca597ba41949b1fd4479..bae43f75c1f698df97d91ef651544757231ec24f 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index 4ad23e49e7274fd8bed13e9da7265102da42c670..93b1dfe0028787d2a015149839f62ca7788c54df 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index 17cd86b19d718b0596fdfbc36167e8d1bf3bb295..b899d6a786d2a0d23e016a4132fb331bba52a6ba 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index 5f4d20263e0eae1bfa832e99e628f9313f77538e..b7492628ff5c80cbcf26a26644906c5c9aa318a3 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index 00cd5742cc5beb3ef86acd96cb32ffbdba5360da..02088c7c888eb6ea96180e3e21643a0936a0bc61 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index 2abcea61c909b9bfdcf949011847d0267c610167..97cc3f6a229510eda76ba7932e1773e94575113f 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index 4b2fcf1956a1f8b0a0f7bbbc08f20409e3377a2c..e35a996346fd4a7abaab215f8ba53b6df1ae1a1f 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index 3b6433b7342d0d2d7583ea1ccf8be541b1f83277..fcfc52a93d4d2fa0ad4f7b04e6a836c5bac86784 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
@@ -89,6 +89,7 @@ polyset_t *Polyset_LoadSets( const char *file, int *numpolysets, int maxTrisPerS
        }
        else{
                Error( "TRI files no longer supported" );
+               return NULL;
        }
 //             TRI_LoadPolysets( file, &psets, numpolysets );
 
index 0544076b6456d9e1a73f73c15d218df026c08eff..331f6138c352448d04e97fc5bcef5c2940b898ea 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index d852369a0a33cd5c92837098496baa7adfdaaa7c..a8086ad5542d940bec0c5e7530d9bdf8b8982a50 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index 2e90bcefb5cbc820abe65ae6f900ba50a954ae79..a7a513731f6cd4ae4e8b114975d8d2de520c652c 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index ae67138e55d15eb8f173013fe6bea77f62e2f8d8..2fa7cee2ca14d2e6120389fe22149b9317273848 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
index 4e3a37a05226ef44b38cd86967aaebe5ee9616d4..c6400cbc1ac3fc4859e2e917a34b3516b7c754bb 100644 (file)
@@ -93,7 +93,6 @@ brush_t *AllocBrush( int numSides ){
        brush_t     *bb;
        size_t c;
 
-
        /* allocate and clear */
        if ( numSides <= 0 ) {
                Error( "AllocBrush called with numsides = %d", numSides );
@@ -282,6 +281,8 @@ void SnapWeldVector( vec3_t a, vec3_t b, vec3_t out ){
        }
 }
 
+
+
 /*
    ==================
    SnapWeldVectorAccu
@@ -329,6 +330,8 @@ void SnapWeldVectorAccu( vec3_accu_t a, vec3_accu_t b, vec3_accu_t out ){
        }
 }
 
+
+
 /*
    FixWinding() - ydnar
    removes degenerate edges from a winding
@@ -1041,8 +1044,9 @@ void SplitBrush( brush_t *brush, int planenum, brush_t **front, brush_t **back )
                if ( !w ) {
                        continue;
                }
+               /* strict, in parallel case we get the face back because it also is the midwinding */
                ClipWindingEpsilonStrict( w, plane->normal, plane->dist,
-                                                                 0 /*PLANESIDE_EPSILON*/, &cw[0], &cw[1] ); /* strict, in parallel case we get the face back because it also is the midwinding */
+                                                       0 /*PLANESIDE_EPSILON*/, &cw[0], &cw[1] );
                for ( j = 0 ; j < 2 ; j++ )
                {
                        if ( !cw[j] ) {
index 4b181c1756ac09338e6d8e311bfa1c4c99d25251..bbab3f25ee101fa57b3db1955a4b2330a4421649 100644 (file)
@@ -44,6 +44,7 @@
 
    ------------------------------------------------------------------------------- */
 
+
 /*
    ProcessAdvertisements()
    copies advertisement info into the BSP structures
@@ -971,11 +972,13 @@ int BSPMain( int argc, char **argv ){
                        colorsRGB = qfalse;
                        Sys_Printf( "Colors are linear\n" );
                }
-               else if ( !strcmp( argv[ i ], "-altsplit" ) ) {
+               else if ( !strcmp( argv[ i ], "-altsplit" ) )
+               {
                        Sys_Printf( "Alternate BSP splitting (by 27) enabled\n" );
                        bspAlternateSplitWeights = qtrue;
                }
-               else if ( !strcmp( argv[ i ], "-deep" ) ) {
+               else if ( !strcmp( argv[ i ], "-deep" ) )
+               {
                        Sys_Printf( "Deep BSP tree generation enabled\n" );
                        deepBSP = qtrue;
                }
index eb9bc4326a170c44a4694344586dce6f681d85f0..fb8af399eddda89e06c3165cf9271cbdb5ef30ed 100644 (file)
@@ -581,6 +581,8 @@ void ParseEntities( void ){
        numBSPEntities = numEntities;
 }
 
+
+
 /*
  * must be called before UnparseEntities
  */
@@ -622,6 +624,8 @@ void InjectCommandLine( char **argv, int beginArgs, int endArgs ){
        SetKeyValue( &entities[0], "_q3map2_version", Q3MAP_VERSION );
 }
 
+
+
 /*
    UnparseEntities()
    generates the dentdata string from all the entities.
@@ -748,6 +752,8 @@ void SetKeyValue( entity_t *ent, const char *key, const char *value ){
        ep->value = copystring( value );
 }
 
+
+
 /*
    KeyExists()
    returns true if entity has this key
@@ -768,6 +774,8 @@ qboolean KeyExists( const entity_t *ent, const char *key ){
        return qfalse;
 }
 
+
+
 /*
    ValueForKey()
    gets the value for an entity key
index e35f289206b658ba708fa309d244a84edd1dd4fd..e5390ede45a1fcc32da6a2893b4df1d17674e161 100644 (file)
@@ -77,12 +77,12 @@ void    FreeBspFace( face_t *f ) {
  */
 
 static void SelectSplitPlaneNum( node_t *node, face_t *list, int *splitPlaneNum, int *compileFlags ){
-       face_t      *split;
-       face_t      *check;
-       face_t      *bestSplit;
+       face_t *split;
+       face_t *check;
+       face_t *bestSplit;
        int splits, facing, front, back;
        int side;
-       plane_t     *plane;
+       plane_t *plane;
        int value, bestValue;
        int i;
        vec3_t normal;
@@ -90,9 +90,6 @@ static void SelectSplitPlaneNum( node_t *node, face_t *list, int *splitPlaneNum,
        int planenum;
        float sizeBias;
 
-       //int frontC,backC,splitsC,facingC;
-
-
        /* ydnar: set some defaults */
        *splitPlaneNum = -1; /* leaf */
        *compileFlags = 0;
@@ -179,10 +176,6 @@ static void SelectSplitPlaneNum( node_t *node, face_t *list, int *splitPlaneNum,
                if ( value > bestValue ) {
                        bestValue = value;
                        bestSplit = split;
-                       //frontC=front;
-                       //backC=back;
-                       //splitsC=splits;
-                       //facingC=facing;
                }
        }
 
@@ -191,24 +184,10 @@ static void SelectSplitPlaneNum( node_t *node, face_t *list, int *splitPlaneNum,
                return;
        }
 
-       //Sys_FPrintf (SYS_VRB, "F: %d B:%d S:%d FA:%ds\n",frontC,backC,splitsC,facingC );
-
        /* set best split data */
        *splitPlaneNum = bestSplit->planenum;
        *compileFlags = bestSplit->compileFlags;
 
-#if 0
-       if ( bestSplit->compileFlags & C_DETAIL ) {
-               for ( split = list; split; split = split->next )
-                       if ( !( split->compileFlags & C_DETAIL ) ) {
-                               Sys_FPrintf( SYS_ERR, "DON'T DO SUCH SPLITS (1)\n" );
-                       }
-       }
-       if ( ( node->compileFlags & C_DETAIL ) && !( bestSplit->compileFlags & C_DETAIL ) ) {
-               Sys_FPrintf( SYS_ERR, "DON'T DO SUCH SPLITS (2)\n" );
-       }
-#endif
-
        if ( *splitPlaneNum > -1 ) {
                mapplanes[ *splitPlaneNum ].counter++;
        }
@@ -248,9 +227,6 @@ void BuildFaceTree_r( node_t *node, face_t *list ){
        winding_t   *frontWinding, *backWinding;
        int i;
        int splitPlaneNum, compileFlags;
-#if 0
-       qboolean isstruct = qfalse;
-#endif
 
 
        /* count faces left */
@@ -286,19 +262,14 @@ void BuildFaceTree_r( node_t *node, face_t *list ){
                        continue;
                }
 
-#if 0
-               if ( !( split->compileFlags & C_DETAIL ) ) {
-                       isstruct = 1;
-               }
-#endif
-
                /* determine which side the face falls on */
                side = WindingOnPlaneSide( split->w, plane->normal, plane->dist );
 
                /* switch on side */
                if ( side == SIDE_CROSS ) {
+                       /* strict; if no winding is left, we have a "virtually identical" plane and don't want to split by it */
                        ClipWindingEpsilonStrict( split->w, plane->normal, plane->dist, CLIP_EPSILON * 2,
-                                                                         &frontWinding, &backWinding ); /* strict; if no winding is left, we have a "virtually identical" plane and don't want to split by it */
+                                                               &frontWinding, &backWinding );
                        if ( frontWinding ) {
                                newFace = AllocBspFace();
                                newFace->w = frontWinding;
@@ -351,25 +322,10 @@ void BuildFaceTree_r( node_t *node, face_t *list ){
                }
        }
 
-#if 0
-       if ( ( node->compileFlags & C_DETAIL ) && isstruct ) {
-               Sys_FPrintf( SYS_ERR, "I am detail, my child is structural, this is a wtf1\n", node->has_structural_children );
-       }
-#endif
-
        for ( i = 0 ; i < 2 ; i++ ) {
                BuildFaceTree_r( node->children[i], childLists[i] );
                node->has_structural_children |= node->children[i]->has_structural_children;
        }
-
-#if 0
-       if ( ( node->compileFlags & C_DETAIL ) && !( node->children[0]->compileFlags & C_DETAIL ) && node->children[0]->planenum != PLANENUM_LEAF ) {
-               Sys_FPrintf( SYS_ERR, "I am detail, my child is structural\n", node->has_structural_children );
-       }
-       if ( ( node->compileFlags & C_DETAIL ) && isstruct ) {
-               Sys_FPrintf( SYS_ERR, "I am detail, my child is structural, this is a wtf2\n", node->has_structural_children );
-       }
-#endif
 }
 
 
index 78b6d5988dbb62ac5ebb8d55cb24b8db766f757e..a8bbec9cf1351ac715c4ed04eef22638a73545c3 100644 (file)
        NULL,           /* unix home sub-dir */
        NULL,           /* magic path word */
        NULL,           /* shader directory */
-       0,          /* max lightmapped surface verts */
-       0,          /* max surface verts */
-       0,          /* max surface indexes */
+       0,              /* max lightmapped surface verts */
+       0,              /* max surface verts */
+       0,              /* max surface indexes */
        qfalse,         /* flares */
        NULL,           /* default flare shader */
        qfalse,         /* wolf lighting model? */
-       0,          /* lightmap width/height */
-       0,          /* lightmap gamma */
+       0,              /* lightmap width/height */
+       0,              /* lightmap gamma */
        qfalse,         /* lightmap sRGB */
        qfalse,         /* texture sRGB */
        qfalse,         /* color sRGB */
-       0,          /* lightmap exposure */
-       0,          /* lightmap compensate */
-       0,          /* lightgrid scale */
-       0,          /* lightgrid ambient scale */
+       0,              /* lightmap exposure */
+       0,              /* lightmap compensate */
+       0,              /* lightgrid scale */
+       0,              /* lightgrid ambient scale */
        qfalse,         /* light angle attenuation uses half-lambert curve */
        qfalse,         /* disable shader lightstyles hack */
        qfalse,         /* keep light entities on bsp */
-       0,          /* default patchMeta subdivisions tolerance */
+       0,              /* default patchMeta subdivisions tolerance */
        qfalse,         /* patch casting enabled */
        qfalse,         /* compile deluxemaps */
-       0,          /* deluxemaps default mode */
-       0,          /* minimap size */
-       0,          /* minimap sharpener */
-       0,          /* minimap border */
+       0,              /* deluxemaps default mode */
+       0,              /* minimap size */
+       0,              /* minimap sharpener */
+       0,              /* minimap border */
        qfalse,         /* minimap keep aspect */
        MINIMAP_MODE_GRAY,  /* minimap mode */
        NULL,           /* minimap name format */
        NULL,           /* bsp file prefix */
-       0,          /* bsp file version */
+       0,              /* bsp file version */
        qfalse,         /* cod-style lump len/ofs order */
        NULL,           /* bsp load function */
        NULL,           /* bsp write function */
index 0841283da3179b83a7d76bfdcd387435a29b58e1..f4303f2e63153470c2f3431d8d14567239c923f2 100644 (file)
        "flareshader",      /* default flare shader */
        qfalse,             /* wolf lighting model? */
        128,                /* lightmap width/height */
-       1.0f,               /* lightmap gamma */
+       2.2f,               /* lightmap gamma */
        qtrue,              /* lightmap sRGB */
        qfalse,             /* texture sRGB (yes, this is incorrect, but we better match ET:UT) */
        qfalse,             /* color sRGB */
index a130ead1312941f2efbe31ec5923983c34d99f1d..3f7a29daa659119121701e1b59164a702223e7b5 100644 (file)
    ------------------------------------------------------------------------------- */
 
 
+   /* -------------------------------------------------------------------------------
+
+   Additional surface flags for Quake Live
+
+   ------------------------------------------------------------------------------- */
+
+#define Q_SURF_SNOWSTEPS       0x80000         // snow footsteps
+#define Q_SURF_WOODSTEPS       0x100000        // wood footsteps
+#define Q_SURF_DMGTHROUGH      0x200000        // Missile dmg through surface(?)
+                                                                               // (This is not in use atm, will
+                                                                               //  probably be re-purposed some day.)
+
 
 /* -------------------------------------------------------------------------------
 
@@ -52,9 +64,9 @@
 
 {
        "quakelive",        /* -game x */
-       "baseq3",           /* default base game data dir (FIXME what does quake live really use?) */
-       ".q3a",             /* unix home sub-dir (FIXME what does quake live really use?) */
-       "quake",            /* magic path word (FIXME where does quake live install to?) */
+       "baseq3",           /* default base game data dir */
+       ".quakelive/quakelive/home",             /* unix home sub-dir */
+       "quake",            /* magic path word */
        "scripts",          /* shader directory */
        64,                 /* max lightmapped surface verts */
        999,                /* max surface verts */
                { "ladder",         0,                          0,                          Q_SURF_LADDER,              0,                          0,                          0 },
                { "nodamage",       0,                          0,                          Q_SURF_NODAMAGE,            0,                          0,                          0 },
                { "metalsteps",     0,                          0,                          Q_SURF_METALSTEPS,          0,                          0,                          0 },
+               { "snowsteps",      0,                          0,                          Q_SURF_SNOWSTEPS,           0,                          0,                          0 },
+               { "woodsteps",      0,                          0,                          Q_SURF_WOODSTEPS,           0,                          0,                          0 },
+               { "dmgthrough",     0,                          0,                          Q_SURF_DMGTHROUGH,          0,                          0,                          0 },
                { "flesh",          0,                          0,                          Q_SURF_FLESH,               0,                          0,                          0 },
                { "nosteps",        0,                          0,                          Q_SURF_NOSTEPS,             0,                          0,                          0 },
                { "nodlight",       0,                          0,                          Q_SURF_NODLIGHT,            0,                          0,                          0 },
index a9e7d699dede92303ada7095f24070e4d3e49846..75d6804e52f3b056ddac01ae0209b5cc10d1a717 100644 (file)
@@ -27,6 +27,7 @@ several games based on the Quake III Arena engine, in the form of "Q3Map2."
 ------------------------------------------------------------------------------- */
 
 /* Derived from Tremulous support by LinuxManMikeC */
+/* Updated to Unvanquished support by Neumond */
 
 
 /* marker */
index b4a3f7d6555e9e7fd494434132e587588f0c575d..fcfd17ec964f65a877d118b9b496d3fd3f995a62 100644 (file)
                { "clusterportal",  W_CONT_CLUSTERPORTAL,       W_CONT_SOLID,               0,                          0,                          C_TRANSLUCENT,              C_SOLID },
                { "donotenter",     W_CONT_DONOTENTER,          W_CONT_SOLID,               0,                          0,                          C_TRANSLUCENT,              C_SOLID },
                { "nonotenterlarge",W_CONT_DONOTENTER_LARGE,    W_CONT_SOLID,               0,                          0,                          C_TRANSLUCENT,              C_SOLID },
+               { "donotenterlarge",W_CONT_DONOTENTER_LARGE,    W_CONT_SOLID,               0,                          0,                          C_TRANSLUCENT,              C_SOLID },
 
                { "fog",            W_CONT_FOG,                 W_CONT_SOLID,               0,                          0,                          C_FOG,                      C_SOLID },
                { "sky",            0,                          0,                          W_SURF_SKY,                 0,                          C_SKY,                      0 },
index 1401323adb15595dc1295af1fadd787d44cf0034..c783b9a0805a89a4b3d7799171668c8ab2f57f1c 100644 (file)
                { "clusterportal",  W_CONT_CLUSTERPORTAL,       W_CONT_SOLID,               0,                          0,                          C_TRANSLUCENT,              C_SOLID },
                { "donotenter",     W_CONT_DONOTENTER,          W_CONT_SOLID,               0,                          0,                          C_TRANSLUCENT,              C_SOLID },
                { "nonotenterlarge",W_CONT_DONOTENTER_LARGE,    W_CONT_SOLID,               0,                          0,                          C_TRANSLUCENT,              C_SOLID },
+               { "donotenterlarge",W_CONT_DONOTENTER_LARGE,    W_CONT_SOLID,               0,                          0,                          C_TRANSLUCENT,              C_SOLID },
 
                { "fog",            W_CONT_FOG,                 W_CONT_SOLID,               0,                          0,                          C_FOG,                      C_SOLID },
                { "sky",            0,                          0,                          W_SURF_SKY,                 0,                          C_SKY,                      0 },
index 519a46e1e57739b5c5046b26b4e3c41aba5680d5..17b21173bb4e4f7fe5f7bf15a62eb972344c21f2 100644 (file)
@@ -101,7 +101,7 @@ void HelpBsp()
                {"-flat", "Enable flat shading (good for combining with -celshader)"},
                {"-fulldetail", "Treat detail brushes as structural ones"},
                {"-leaktest", "Abort if a leak was found"},
-               {"-linefile <filename.lin>", "Line file to write"},
+               {"-linfile <filename.lin>", "Line file to write"},
                {"-meta", "Combine adjacent triangles of the same texture to surfaces (ALWAYS USE THIS)"},
                {"-minsamplesize <N>", "Sets minimum lightmap resolution in luxels/qu"},
                {"-mi <N>", "Sets the maximum number of indexes per surface"},
@@ -137,6 +137,7 @@ void HelpVis()
        struct HelpOption vis[] = {
                {"-vis <filename.map>", "Switch that enters this stage"},
                {"-fast", "Very fast and crude vis calculation"},
+               {"-hint", "Merge all but hint portals"},
                {"-mergeportals", "The less crude half of `-merge`, makes vis sometimes much faster but doesn't hurt fps usually"},
                {"-merge", "Faster but still okay vis calculation"},
                {"-nopassage", "Just use PortalFlow vis (usually less fps)"},
@@ -206,6 +207,8 @@ void HelpLight()
                {"-gridscale <F>", "Scaling factor for the light grid only"},
                {"-keeplights", "Keep light entities in the BSP file after compile"},
                {"-lightmapdir <directory>", "Directory to store external lightmaps (default: same as map name without extension)"},
+               {"-lightmapsearchblocksize <N>", "Restrict lightmap search to block size <N>"},
+               {"-lightmapsearchpower <N>", "Optimize for lightmap merge power <N>"},
                {"-lightmapsize <N>", "Size of lightmaps to generate (must be a power of two)"},
                {"-lightsubdiv <N>", "Size of light emitting shader subdivision"},
                {"-lomem", "Low memory but slower lighting mode"},
index 16c3304a6386a1033e092ac1f8ad041bedb7b82e..6ae88ca78fbe6cd467f809d63f632c3d47617c4a 100644 (file)
@@ -123,7 +123,6 @@ static void LoadPNGBuffer( byte *buffer, int size, byte **pixels, int *width, in
        png_struct  *png;
        png_info    *info, *end;
        pngBuffer_t pb;
-       //pngBuffer_t     *pb = (pngBuffer_t*) png_get_io_ptr( png );
        int bitDepth, colorType;
        png_uint_32 w, h, i;
        byte        **rowPointers;
@@ -170,7 +169,6 @@ static void LoadPNGBuffer( byte *buffer, int size, byte **pixels, int *width, in
        pb.size = size;
        pb.offset = 0;
        png_set_read_fn( png, &pb, PNGReadData );
-       //png->io_ptr = &pb; /* hack! */
 
        /* set error longjmp */
        if ( setjmp( png_jmpbuf(png) ) ) {
index 756b7731b2ef028acbb15b8ad5e2151689299028..f410226f9cb731ec1accb8f84163d5cc3b6b5062 100644 (file)
@@ -1159,7 +1159,7 @@ int LightContributionToSample( trace_t *trace ){
                /* return to sender */
                return 1;
        }
-       else{
+       else {
                Error( "Light of undefined type!" );
        }
 
@@ -1913,6 +1913,7 @@ void LightWorld( const char *BSPFilePath, qboolean fastAllocate ){
        if ( VectorLength( color ) == 0.0f ) {
                VectorSet( color, 1.0, 1.0, 1.0 );
        }
+
        if ( colorsRGB ) {
                color[0] = Image_LinearFloatFromsRGBFloat( color[0] );
                color[1] = Image_LinearFloatFromsRGBFloat( color[1] );
@@ -2485,6 +2486,7 @@ int LightMain( int argc, char **argv ){
                        }
                        i++;
                }
+
                else if ( !strcmp( argv[ i ], "-deluxe" ) || !strcmp( argv[ i ], "-deluxemap" ) ) {
                        deluxemap = qtrue;
                        Sys_Printf( "Generating deluxemaps for average light direction\n" );
index 37d8c4e57ca4f6ed141cc37f2f8e24dd01a47d6a..9fe00ef68c57dd7d7f5876739be47d86fd0eeffa 100644 (file)
@@ -552,7 +552,7 @@ static void RadSubdivideDiffuseLight( int lightmapNum, bspDrawSurface_t *ds, raw
        light->falloffTolerance = falloffTolerance;
 
        /* bouncing light? */
-       if ( !bouncing ) {
+       if ( bouncing == qfalse ) {
                /* This is weird. This actually handles surfacelight and not
                 * bounces. */
 
index cb22bb44407cb8bfcc60419296bf8017a4c82c80..f58bd4ac4a9db93a1a3183d507b4f56d74c35091 100644 (file)
@@ -56,7 +56,8 @@
 #define GROW_TRACE_NODES        16384       //%        16384
 #define GROW_NODE_ITEMS         16          //%        256
 
-#define MAX_TW_VERTS            24 // vortex: increased from 12 to 24 for ability co compile some insane maps with large curve count
+// vortex: increased from 12 to 24 for ability co compile some insane maps with large curve count
+#define MAX_TW_VERTS            24
 
 #define TRACE_ON_EPSILON        0.1f
 
@@ -198,9 +199,6 @@ static int AllocTraceNode( void ){
        memset( &traceNodes[ numTraceNodes ], 0, sizeof( traceNode_t ) );
        traceNodes[ numTraceNodes ].type = TRACE_LEAF;
        ClearBounds( traceNodes[ numTraceNodes ].mins, traceNodes[ numTraceNodes ].maxs );
-
-       /* Sys_Printf("alloc node %d\n", numTraceNodes); */
-
        numTraceNodes++;
 
        /* return the count */
@@ -406,8 +404,6 @@ static int SetupTraceNodes_r( int bspNodeNum ){
                }
        }
 
-       /* Sys_Printf("node %d children: %d %d\n", nodeNum, traceNodes[ nodeNum ].children[0], traceNodes[ nodeNum ].children[1]); */
-
        /* return node number */
        return nodeNum;
 }
index b63d14b233f1cab25b55488ce1beb260473e0014..c75dac2e55f5705029df32059d2eec071a09031d 100644 (file)
@@ -1740,7 +1740,7 @@ static qboolean SubmapRawLuxel( rawLightmap_t *lm, int x, int y, float bx, float
                origin2 = SUPER_ORIGIN( x, y );
                //%     normal2 = SUPER_NORMAL( x, y );
        }
-       else{
+       else {
                Sys_FPrintf( SYS_WRN, "WARNING: Spurious lightmap S vector\n" );
        }
 
@@ -1764,16 +1764,13 @@ static qboolean SubmapRawLuxel( rawLightmap_t *lm, int x, int y, float bx, float
                origin2 = SUPER_ORIGIN( x, y );
                //%     normal2 = SUPER_NORMAL( x, y );
        }
-       else{
+       else {
                Sys_FPrintf( SYS_WRN, "WARNING: Spurious lightmap T vector\n" );
        }
 
        VectorSubtract( origin2, origin, originVecs[ 1 ] );
-       //%     VectorSubtract( normal2, normal, normalVecs[ 1 ] );
 
        /* calculate new origin */
-       //%     VectorMA( origin, bx, originVecs[ 0 ], sampleOrigin );
-       //%     VectorMA( sampleOrigin, by, originVecs[ 1 ], sampleOrigin );
        for ( i = 0; i < 3; i++ )
                sampleOrigin[ i ] = sampleOrigin[ i ] + ( bx * originVecs[ 0 ][ i ] ) + ( by * originVecs[ 1 ][ i ] );
 
@@ -1784,10 +1781,6 @@ static qboolean SubmapRawLuxel( rawLightmap_t *lm, int x, int y, float bx, float
        }
 
        /* calculate new normal */
-       //%     VectorMA( normal, bx, normalVecs[ 0 ], sampleNormal );
-       //%     VectorMA( sampleNormal, by, normalVecs[ 1 ], sampleNormal );
-       //%     if( VectorNormalize( sampleNormal, sampleNormal ) <= 0.0f )
-       //%             return qfalse;
        normal = SUPER_NORMAL( x, y );
        VectorCopy( normal, sampleNormal );
 
@@ -2247,42 +2240,31 @@ void IlluminateRawLightmap( int rawLightmapNum ){
                                        normal = SUPER_NORMAL( x, y );
                                        flag = SUPER_FLAG( x, y );
 
-#if 0
-                                       ////////// 27's temp hack for testing edge clipping ////
-                                       if ( origin[0] == 0 && origin[1] == 0 && origin[2] == 0 ) {
-                                               lightLuxel[ 1 ] = 255;
-                                               lightLuxel[ 3 ] = 1.0f;
-                                               totalLighted++;
-                                       }
-                                       else
-#endif
-                                       {
-                                               /* set contribution count */
-                                               lightLuxel[ 3 ] = 1.0f;
+                                       /* set contribution count */
+                                       lightLuxel[ 3 ] = 1.0f;
 
-                                               /* setup trace */
-                                               trace.cluster = *cluster;
-                                               VectorCopy( origin, trace.origin );
-                                               VectorCopy( normal, trace.normal );
+                                       /* setup trace */
+                                       trace.cluster = *cluster;
+                                       VectorCopy( origin, trace.origin );
+                                       VectorCopy( normal, trace.normal );
 
-                                               /* get light for this sample */
-                                               LightContributionToSample( &trace );
-                                               VectorCopy( trace.color, lightLuxel );
+                                       /* get light for this sample */
+                                       LightContributionToSample( &trace );
+                                       VectorCopy( trace.color, lightLuxel );
 
-                                               /* add the contribution to the deluxemap */
-                                               if ( deluxemap ) {
-                                                       VectorCopy( trace.directionContribution, lightDeluxel );
-                                               }
+                                       /* add the contribution to the deluxemap */
+                                       if ( deluxemap ) {
+                                               VectorCopy( trace.directionContribution, lightDeluxel );
+                                       }
 
-                                               /* check for evilness */
-                                               if ( trace.forceSubsampling > 1.0f && ( lightSamples > 1 || lightRandomSamples ) && luxelFilterRadius == 0 ) {
-                                                       totalLighted++;
-                                                       *flag |= FLAG_FORCE_SUBSAMPLING; /* force */
-                                               }
-                                               /* add to count */
-                                               else if ( trace.color[ 0 ] || trace.color[ 1 ] || trace.color[ 2 ] ) {
+                                       /* check for evilness */
+                                       if ( trace.forceSubsampling > 1.0f && ( lightSamples > 1 || lightRandomSamples ) && luxelFilterRadius == 0 ) {
                                                        totalLighted++;
-                                               }
+                                               *flag |= FLAG_FORCE_SUBSAMPLING; /* force */
+                                       }
+                                       /* add to count */
+                                       else if ( trace.color[ 0 ] || trace.color[ 1 ] || trace.color[ 2 ] ) {
+                                               totalLighted++;
                                        }
                                }
                        }
@@ -2610,8 +2592,6 @@ void IlluminateRawLightmap( int rawLightmapNum ){
                                {
                                        /* get cluster */
                                        cluster = SUPER_CLUSTER( x, y );
-                                       //%     if( *cluster < 0 ) // TODO why not do this check? These pixels should be zero anyway
-                                       //%             continue;
 
                                        /* get particulars */
                                        luxel = SUPER_LUXEL( lightmapNum, x, y );
@@ -2735,45 +2715,6 @@ void IlluminateRawLightmap( int rawLightmapNum ){
                        }
                }
        }
-
-
-#if 0
-       // audit pass
-       for ( lightmapNum = 0; lightmapNum < MAX_LIGHTMAPS; lightmapNum++ )
-       {
-               /* early out */
-               if ( lm->superLuxels[ lightmapNum ] == NULL ) {
-                       continue;
-               }
-               for ( y = 0; y < lm->sh; y++ )
-                       for ( x = 0; x < lm->sw; x++ )
-                       {
-                               /* get cluster */
-                               cluster = SUPER_CLUSTER( x, y );
-                               luxel = SUPER_LUXEL( lightmapNum, x, y );
-                               deluxel = SUPER_DELUXEL( x, y );
-                               if ( !luxel || !deluxel || !cluster ) {
-                                       Sys_FPrintf( SYS_VRB, "WARNING: I got NULL'd.\n" );
-                                       continue;
-                               }
-                               else if ( *cluster < 0 ) {
-                                       // unmapped pixel
-                                       // should have neither deluxemap nor lightmap
-                                       if ( deluxel[3] ) {
-                                               Sys_FPrintf( SYS_VRB, "WARNING: I have written deluxe to an unmapped luxel. Sorry.\n" );
-                                       }
-                               }
-                               else
-                               {
-                                       // mapped pixel
-                                       // should have both deluxemap and lightmap
-                                       if ( deluxel[3] ) {
-                                               Sys_FPrintf( SYS_VRB, "WARNING: I forgot to write deluxe to a mapped luxel. Sorry.\n" );
-                                       }
-                               }
-                       }
-       }
-#endif
 }
 
 
@@ -3675,7 +3616,7 @@ void SetupEnvelopes( qboolean forGrid, qboolean fastFlag ){
                                else{
                                        light->flags &= ~LIGHT_FAST_TEMP;
                                }
-                               if ( fastpoint && ( light->flags != EMIT_AREA ) ) {
+                               if ( fastpoint && ( light->type != EMIT_AREA ) ) {
                                        light->flags |= LIGHT_FAST_TEMP;
                                }
                                if ( light->si && light->si->noFast ) {
index c437bcaf30bdc51b5551d1ce3083f27b1f7a8f57..1b28ca06935e860ddefddc1b3e536f0f23870960 100644 (file)
@@ -890,7 +890,6 @@ static int CompareSurfaceInfo( const void *a, const void *b ){
                return -1;
        }
 
-
        /* then lightmap sample size */
        if ( aInfo->sampleSize < bInfo->sampleSize ) {
                return 1;
@@ -2342,6 +2341,8 @@ static int CompareRawLightmap( const void *a, const void *b ){
        return 0;
 }
 
+
+
 void FillOutLightmap( outLightmap_t *olm ){
        int x, y;
        int ofs;
@@ -2454,6 +2455,8 @@ void FillOutLightmap( outLightmap_t *olm ){
        }
 }
 
+
+
 /*
    StoreSurfaceLightmaps()
    stores the surface lightmaps into the bsp as byte rgb triplets
@@ -2477,8 +2480,8 @@ void StoreSurfaceLightmaps( qboolean fastAllocate ){
        char dirname[ 1024 ], filename[ 1024 ];
        shaderInfo_t        *csi;
        char lightmapName[ 128 ];
-       const char              *rgbGenValues[ 256 ];
-       const char              *alphaGenValues[ 256 ];
+       const char          *rgbGenValues[ 256 ];
+       const char          *alphaGenValues[ 256 ];
 
 
        /* note it */
@@ -2501,7 +2504,7 @@ void StoreSurfaceLightmaps( qboolean fastAllocate ){
           ----------------------------------------------------------------- */
 
        /* note it */
-       Sys_Printf( "Subsampling..." );
+       Sys_FPrintf( SYS_VRB, "Subsampling..." );
 
        /* walk the list of raw lightmaps */
        numUsed = 0;
@@ -2969,7 +2972,7 @@ void StoreSurfaceLightmaps( qboolean fastAllocate ){
 
        if ( noCollapse == qfalse && deluxemap == qfalse ) {
                /* note it */
-               Sys_Printf( "collapsing..." );
+               Sys_FPrintf( SYS_VRB, "collapsing..." );
 
                /* set all twin refs to null */
                for ( i = 0; i < numRawLightmaps; i++ )
@@ -3038,7 +3041,7 @@ void StoreSurfaceLightmaps( qboolean fastAllocate ){
           ----------------------------------------------------------------- */
 
        /* note it */
-       Sys_Printf( "sorting..." );
+       Sys_FPrintf( SYS_VRB, "sorting..." );
 
        /* allocate a new sorted list */
        if ( sortLightmaps == NULL ) {
@@ -3055,7 +3058,7 @@ void StoreSurfaceLightmaps( qboolean fastAllocate ){
           ----------------------------------------------------------------- */
 
        /* note it */
-       Sys_Printf( "allocating..." );
+       Sys_FPrintf( SYS_VRB, "allocating..." );
 
        /* kill all existing output lightmaps */
        if ( outLightmaps != NULL ) {
@@ -3108,7 +3111,7 @@ void StoreSurfaceLightmaps( qboolean fastAllocate ){
           ----------------------------------------------------------------- */
 
        /* note it */
-       Sys_Printf( "storing..." );
+       Sys_FPrintf( SYS_VRB, "storing..." );
 
        /* count the bsp lightmaps and allocate space */
        if ( bspLightBytes != NULL ) {
@@ -3178,7 +3181,7 @@ void StoreSurfaceLightmaps( qboolean fastAllocate ){
        }
 
        if ( numExtLightmaps > 0 ) {
-               Sys_Printf( "\n" );
+               Sys_FPrintf( SYS_VRB, "\n" );
        }
 
        /* delete unused external lightmaps */
@@ -3199,7 +3202,7 @@ void StoreSurfaceLightmaps( qboolean fastAllocate ){
           ----------------------------------------------------------------- */
 
        /* note it */
-       Sys_Printf( "projecting..." );
+       Sys_FPrintf( SYS_VRB, "projecting..." );
 
        /* walk the list of surfaces */
        for ( i = 0; i < numBSPDrawSurfaces; i++ )
@@ -3478,7 +3481,7 @@ void StoreSurfaceLightmaps( qboolean fastAllocate ){
        }
 
        /* finish */
-       Sys_Printf( "done.\n" );
+       Sys_FPrintf( SYS_VRB, "done.\n" );
 
        /* calc num stored */
        numStored = numBSPLightBytes / 3;
index 85f2f491d468c8423676cbf03ac910d81cfd4fd5..bcda949b477331d116323600b216b649588e45b6 100644 (file)
@@ -37,7 +37,6 @@
 #include "q3map2.h"
 #include <glib.h>
 
-
 /*
    Random()
    returns a pseudorandom number between 0 and 1
@@ -80,6 +79,7 @@ char *Q_strncat( char *dst, size_t dlen, const char *src, size_t slen ) {
        return Q_strncpyz( dst + n, src, MIN( slen, dlen - n ) );
 }
 
+
 /*
    ExitQ3Map()
    cleanup routine
@@ -92,6 +92,7 @@ static void ExitQ3Map( void ){
        }
 }
 
+
 /*
    main()
    q3map mojo...
index f1b4fdc48b93559e7ccfa156afdb3e33b4813531..c8558a3f64e097a1066e86b15e7e40161203559f 100644 (file)
@@ -741,7 +741,6 @@ void AddTriangleModels( entity_t *e ){
                }
        }
 
-
        /* walk the entity list */
        for ( num = 1; num < numEntities; num++ )
        {
index 0520d33277e1d3db414580fa733de4f9b087cf4b..ef346f70bd596f88011b612c8a8e347dc943a3f2 100644 (file)
@@ -101,7 +101,7 @@ char *LokiGetHomeDir( void ){
  */
 
 void LokiInitPaths( char *argv0 ){
-       char        *home;
+       char *home;
 
        if ( !homePath ) {
                /* get home dir */
@@ -121,9 +121,10 @@ void LokiInitPaths( char *argv0 ){
        /* this is kinda crap, but hey */
        strcpy( installPath, "../" );
        #else
+
        char temp[ MAX_OS_PATH ];
-       char        *path;
-       char        *last;
+       char *path;
+       char *last;
        qboolean found;
 
 
@@ -175,7 +176,6 @@ void LokiInitPaths( char *argv0 ){
                                path++;
                        }
 
-
                        /* concatenate */
                        if ( last > ( path + 1 ) ) {
                                // +1 hack: Q_strncat calls Q_strncpyz that expects a len including '\0'
index 209ad60dbd4f6d576c003a6b19f39625ee715730..676fa31599df4754276c9580b5e532edd709912c 100644 (file)
@@ -409,8 +409,9 @@ void SplitNodePortals( node_t *node ){
 //
 // cut the portal into two portals, one on each side of the cut plane
 //
+               /* not strict, we want to always keep one of them even if coplanar */
                ClipWindingEpsilon( p->winding, plane->normal, plane->dist,
-                                                       SPLIT_WINDING_EPSILON, &frontwinding, &backwinding ); /* not strict, we want to always keep one of them even if coplanar */
+                                                       SPLIT_WINDING_EPSILON, &frontwinding, &backwinding );
 
                if ( frontwinding && WindingIsTiny( frontwinding ) ) {
                        if ( !f->tinyportals ) {
index f38d567943a9cb5a99f43af8cf08d26601fd75a9..46fec5eef2bed378f918ff73fe8b8a609ec34ee2 100644 (file)
@@ -41,8 +41,6 @@
 #define Q3MAP_MOTD      "Your map saw the pretty lights from q3map2's BFG"
 
 
-
-
 /* -------------------------------------------------------------------------------
 
    dependencies
 #define HINT_PRIORITY           1000        /* ydnar: force hint splits first and antiportal/areaportal splits last */
 #define ANTIPORTAL_PRIORITY     -1000
 #define AREAPORTAL_PRIORITY     -1000
-#define DETAIL_PRIORITY     -3000
+#define DETAIL_PRIORITY         -3000
 
 #define PSIDE_FRONT             1
 #define PSIDE_BACK              2
 #define RAD_LUXEL_SIZE          3
 #define SUPER_LUXEL_SIZE        4
 #define SUPER_FLAG_SIZE         4
-#define FLAG_FORCE_SUBSAMPLING 1
+#define FLAG_FORCE_SUBSAMPLING  1
 #define FLAG_ALREADY_SUBSAMPLED 2
 #define SUPER_ORIGIN_SIZE       3
 #define SUPER_NORMAL_SIZE       4
@@ -826,7 +824,7 @@ typedef struct face_s
        struct face_s       *next;
        int planenum;
        int priority;
-       //qboolean                      checked;
+       //qboolean checked;
        int compileFlags;
        winding_t           *w;
 }
@@ -958,8 +956,9 @@ typedef struct parseMesh_s
        shaderInfo_t        *shaderInfo;
        shaderInfo_t        *celShader;             /* :) */
 
+       /* jal : entity based _lightmapsamplesize */
+       int lightmapSampleSize;
        /* ydnar: gs mods */
-       int lightmapSampleSize;                     /* jal : entity based _lightmapsamplesize */
        float lightmapScale;
        vec3_t eMins, eMaxs;
        indexMap_t          *im;
@@ -1467,7 +1466,7 @@ typedef struct rawLightmap_s
        float                   *bspLuxels[ MAX_LIGHTMAPS ];
        float                   *radLuxels[ MAX_LIGHTMAPS ];
        float                   *superLuxels[ MAX_LIGHTMAPS ];
-       unsigned char               *superFlags;
+       unsigned char           *superFlags;
        float                   *superOrigins;
        float                   *superNormals;
        int                     *superClusters;
@@ -1523,15 +1522,19 @@ void                        HelpMain(const char* arg);
 game_t                      *GetGame( char *arg );
 void                        InitPaths( int *argc, char **argv );
 
+
 /* fixaas.c */
 int                         FixAASMain( int argc, char **argv );
 
+
 /* bsp.c */
 int                         BSPMain( int argc, char **argv );
 
+
 /* bsp_analyze.c */
 int                         AnalyzeBSPMain( int argc, char **argv );
 
+
 /* bsp_info.c */
 int                         BSPInfoMain( int count, char **fileNames );
 
@@ -1544,6 +1547,7 @@ int                         MiniMapBSPMain( int argc, char **argv );
 /* convert_bsp.c */
 int                         ConvertBSPMain( int argc, char **argv );
 
+
 /* convert_map.c */
 int                         ConvertBSPToMap( char *bspName );
 int                         ConvertBSPToMap_BP( char *bspName );
@@ -1962,7 +1966,7 @@ Q_EXTERN game_t games[]
        ,
                                                                #include "game_tremulous.h" /*LinuxManMikeC: must be after game_quake3.h, depends on #define's set in it */
        ,
-                                                               #include "game_unvanquished.h"
+                                                               #include "game_unvanquished.h" /* must be after game_tremulous.h as they share defines! */
        ,
                                                                #include "game_tenebrae.h"
        ,
@@ -2038,8 +2042,8 @@ Q_EXTERN qboolean nofog Q_ASSIGN( qfalse );
 Q_EXTERN qboolean noHint Q_ASSIGN( qfalse );                        /* ydnar */
 Q_EXTERN qboolean renameModelShaders Q_ASSIGN( qfalse );            /* ydnar */
 Q_EXTERN qboolean skyFixHack Q_ASSIGN( qfalse );                    /* ydnar */
-Q_EXTERN qboolean bspAlternateSplitWeights Q_ASSIGN( qfalse );                      /* 27 */
-Q_EXTERN qboolean deepBSP Q_ASSIGN( qfalse );                   /* div0 */
+Q_EXTERN qboolean bspAlternateSplitWeights Q_ASSIGN( qfalse );      /* 27 */
+Q_EXTERN qboolean deepBSP Q_ASSIGN( qfalse );                       /* div0 */
 Q_EXTERN qboolean maxAreaFaceSurface Q_ASSIGN( qfalse );                    /* divVerent */
 
 Q_EXTERN int patchSubdivisions Q_ASSIGN( 8 );                       /* ydnar: -patchmeta subdivisions */
@@ -2523,7 +2527,7 @@ Q_EXTERN int allocatedBSPBrushSides Q_ASSIGN( 0 );
 Q_EXTERN bspBrushSide_t*    bspBrushSides Q_ASSIGN( NULL );
 
 Q_EXTERN int numBSPLightBytes Q_ASSIGN( 0 );
-Q_EXTERN byte               *bspLightBytes Q_ASSIGN( NULL );
+Q_EXTERN byte *bspLightBytes Q_ASSIGN( NULL );
 
 //%    Q_EXTERN int                            numBSPGridPoints Q_ASSIGN( 0 );
 //%    Q_EXTERN byte                           *bspGridPoints Q_ASSIGN( NULL );
@@ -2535,11 +2539,11 @@ Q_EXTERN int numBSPVisBytes Q_ASSIGN( 0 );
 Q_EXTERN byte bspVisBytes[ MAX_MAP_VISIBILITY ];
 
 Q_EXTERN int numBSPDrawVerts Q_ASSIGN( 0 );
-Q_EXTERN bspDrawVert_t          *bspDrawVerts Q_ASSIGN( NULL );
+Q_EXTERN bspDrawVert_t *bspDrawVerts Q_ASSIGN( NULL );
 
 Q_EXTERN int numBSPDrawIndexes Q_ASSIGN( 0 );
 Q_EXTERN int allocatedBSPDrawIndexes Q_ASSIGN( 0 );
-Q_EXTERN int                *bspDrawIndexes Q_ASSIGN( NULL );
+Q_EXTERN int *bspDrawIndexes Q_ASSIGN( NULL );
 
 Q_EXTERN int numBSPDrawSurfaces Q_ASSIGN( 0 );
 Q_EXTERN bspDrawSurface_t   *bspDrawSurfaces Q_ASSIGN( NULL );
index c8c6e4f433fe2d067615dea3bac49fba8963c341..e47f256735e3ac081e976fd2c1577ecc986469b6 100644 (file)
@@ -2051,6 +2051,8 @@ int FilterPointIntoTree_r( vec3_t point, mapDrawSurface_t *ds, node_t *node ){
        return AddReferenceToLeaf( ds, node );
 }
 
+
+
 /*
    FilterPointConvexHullIntoTree_r() - ydnar
    filters the convex hull of multiple points from a surface into the tree
@@ -2101,6 +2103,7 @@ int FilterPointConvexHullIntoTree_r( vec3_t **points, int npoints, mapDrawSurfac
 }
 
 
+
 /*
    FilterWindingIntoTree_r() - ydnar
    filters a winding from a drawsurface into the tree
@@ -2183,7 +2186,7 @@ int FilterWindingIntoTree_r( winding_t *w, mapDrawSurface_t *ds, node_t *node ){
                        if ( DotProduct( plane1, reverse ) > 0.999f && fabs( plane1[ 3 ] - reverse[ 3 ] ) < 0.001f ) {
                                return FilterWindingIntoTree_r( w, ds, node->children[ 1 ] );
                        }
-            #else
+                       #else
                        (void) plane2;
                        /* div0: this is the cholera (doesn't hit enough) */
 
@@ -2590,6 +2593,8 @@ void EmitFlareSurface( mapDrawSurface_t *ds ){
        numSurfacesByType[ ds->type ]++;
 }
 
+
+
 /*
    EmitPatchSurface()
    emits a bsp patch drawsurface
@@ -2697,6 +2702,8 @@ void EmitPatchSurface( entity_t *e, mapDrawSurface_t *ds ){
        numSurfacesByType[ ds->type ]++;
 }
 
+
+
 /*
    OptimizeTriangleSurface() - ydnar
    optimizes the vertex/index data in a triangle surface
@@ -2967,6 +2974,7 @@ static void EmitFaceSurface( mapDrawSurface_t *ds ){
 }
 
 
+
 /*
    MakeDebugPortalSurfs_r() - ydnar
    generates drawsurfaces for passable portals in the bsp
index f184a00585f8b4257cc43737214347e77ed07457..93ee30ecfda37e93651f98fb651a11ffc9dd33bd 100644 (file)
@@ -337,7 +337,7 @@ void LoadSurfaceExtraFile( const char *surfaceFilePath ){
        }
 
        /* parse the file */
-       ParseFromMemory( (char *) buffer, size );
+       ParseFromMemory( (char*) buffer, size );
 
        /* tokenize it */
        while ( 1 )
index 2c9641bc7b0e15095f310339fa6742adb3178da2..145e1961cc7ee683fcd89814fdddcbc6e61ec6ad 100644 (file)
@@ -341,6 +341,7 @@ void TriangulatePatchSurface( entity_t *e, mapDrawSurface_t *ds ){
        if ( ds->numVerts == 0 || ds->type != SURFACE_PATCH || ( patchMeta == qfalse && !forcePatchMeta ) ) {
                return;
        }
+
        /* make a mesh from the drawsurf */
        src.width = ds->patchWidth;
        src.height = ds->patchHeight;
@@ -419,6 +420,8 @@ void TriangulatePatchSurface( entity_t *e, mapDrawSurface_t *ds ){
        ClassifySurfaces( 1, ds );
 }
 
+
+
 #define TINY_AREA 1.0f
 #define MAXAREA_MAXTRIES 8
 int MaxAreaIndexes( bspDrawVert_t *vert, int cnt, int *indexes ){
@@ -589,6 +592,8 @@ int MaxAreaIndexes( bspDrawVert_t *vert, int cnt, int *indexes ){
        return -1;
 }
 
+
+
 /*
    MaxAreaFaceSurface() - divVerent
    creates a triangle list using max area indexes
@@ -631,6 +636,7 @@ void MaxAreaFaceSurface( mapDrawSurface_t *ds ){
 }
 
 
+
 /*
    FanFaceSurface() - ydnar
    creates a tri-fan from a brush face winding
@@ -835,6 +841,7 @@ void StripFaceSurface( mapDrawSurface_t *ds ){
 }
 
 
+
 /*
    EmitMetaStatictics
    vortex: prints meta statistics in general output
@@ -851,6 +858,8 @@ void EmitMetaStats(){
        Sys_Printf( "%9d meta triangles\n", numMetaTriangles );
 }
 
+
+
 /*
    MakeEntityMetaTriangles()
    builds meta triangles from brush faces (tristrips and fans)
@@ -1468,8 +1477,6 @@ static int AddMetaTriangleToSurface( mapDrawSurface_t *ds, metaTriangle_t *tri,
                }
        }
 
-
-
        if ( metaMaxBBoxDistance >= 0 ) {
                if ( ds->numIndexes > 0 ) {
                        VectorCopy( ds->mins, mins );
index c405d3170b5de1d0001b3d913039d3703b164780..1929e3e8b229ee3c09b5104517578374b7b5665b 100644 (file)
@@ -55,7 +55,8 @@ typedef struct edgeLine_s {
        vec3_t origin;
        vec3_t dir;
 
-       edgePoint_t *chain;     // unused element of doubly linked list
+       // unused element of doubly linked list
+       edgePoint_t *chain;
 } edgeLine_t;
 
 typedef struct {
@@ -67,8 +68,7 @@ originalEdge_t  *originalEdges = NULL;
 int numOriginalEdges;
 int allocatedOriginalEdges = 0;
 
-
-edgeLine_t      *edgeLines = NULL;
+edgeLine_t *edgeLines = NULL;
 int numEdgeLines;
 int allocatedEdgeLines = 0;
 
@@ -373,7 +373,7 @@ void FixSurfaceJunctions( mapDrawSurface_t *ds ) {
                        p = e->chain->prev;
                }
 
-               for (  ; p != e->chain ; ) {
+               for ( ; p != e->chain ; ) {
                        if ( start < end ) {
                                if ( p->intercept > end - ON_EPSILON ) {
                                        break;
index f5f3c348b40f0ab407500fe3fef60c983b6c1262..98f208ab2149e3b2e76d12091de175451152b2c2 100644 (file)
@@ -163,7 +163,9 @@ int LeafVectorFromPortalVector( byte *portalbits, byte *leafbits ){
    Merges the portal visibility for a leaf
    ===============
  */
+
 static int clustersizehistogram[MAX_MAP_LEAFS] = {0};
+
 void ClusterMerge( int leafnum ){
        leaf_t      *leaf;
        byte portalvector[MAX_PORTALS / 8];
@@ -1168,7 +1170,7 @@ int VisMain( int argc, char **argv ){
        }
 
        if ( i != argc - 1 ) {
-               Error( "usage: vis [-threads #] [-level 0-4] [-fast] [-v] BSPFilePath" );
+               Error( "usage: vis [-threads #] [-fast] [-v] BSPFilePath" );
        }
 
 
@@ -1184,9 +1186,9 @@ int VisMain( int argc, char **argv ){
                sprintf( portalFilePath, "%s%s", inbase, ExpandArg( argv[ i ] ) );
                StripExtension( portalFilePath );
                strcat( portalFilePath, ".prt" );
-               Sys_Printf( "Loading %s\n", portalFilePath );
-               LoadPortals( portalFilePath );
        }
+       Sys_Printf( "Loading %s\n", portalFilePath );
+       LoadPortals( portalFilePath );
 
        /* ydnar: exit if no portals, hence no vis */
        if ( numportals == 0 ) {
index 8ae5009821a17f3a479e5a7af3177b5dca2aea7b..4b3e53fe8ce4baaf83cb599da3df60fbcc3511c8 100644 (file)
@@ -70,8 +70,6 @@ int EmitShader( const char *shader, int *contentFlags, int *surfaceFlags ){
                }
        }
 
-       // i == numBSPShaders
-
        /* get shaderinfo */
        si = ShaderInfoForShader( shader );