Changeset 319

Show
Ignore:
Timestamp:
09/01/08 12:34:10 (3 months ago)
Author:
timo
Message:

merge branch work back into trunk

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • GtkRadiant/trunk/config.py

    r301 r319  
    258258                ret = os.system( cmd ) 
    259259                if ( ret != 0 ): 
    260                         raise 'checkout or update failed' 
     260                        raise Exception( 'checkout or update failed' ) 
    261261 
    262262 
     
    268268 
    269269        def Setup( self ): 
    270                 for platform in self.setup_platforms: 
    271270                        if ( platform == 'local' ): 
    272271                                # special case, fetch external paks under the local install directory 
    273272                                self.FetchGamePaks( self.install_directory ) 
     273                # NOTE: unrelated to self.setup_platforms - grab support files and binaries and install them 
     274                if ( self.platform == 'Windows' ): 
     275                        depsfile = 'GtkR-deps-1.6-3.zip' 
     276                        # TMP 
     277                        #if ( not os.path.exists( depsfile ) ): 
     278                        if ( True ): 
     279                                cmd = 'wget http://zerowing.idsoftware.com/files/radiant/developer/1.6.1/%s' % depsfile 
     280                                print cmd 
     281                                ret = os.system( cmd ) 
     282                                if ( ret != 0 ): 
     283                                        raise Exception( 'Failed to download dependencies file' ) 
     284 
     285                                # extract one directoy above 
     286                                f = os.path.abspath( depsfile ) 
     287                                backup_cwd = os.getcwd() 
     288                                os.chdir( os.path.dirname( backup_cwd ) ) 
     289                                cmd = 'unzip %s' % f 
     290                                print cmd 
     291                                ret = os.system( cmd ) 
     292                                if ( ret != 0 ): 
     293                                        raise Exception( 'unzip dependencies file failed' ) 
     294                                os.chdir( backup_cwd ) 
     295                                 
     296                                # copy all the dependent runtime data to the install directory 
     297                                srcdir = os.path.dirname( backup_cwd ) 
     298                                for f in [ 
     299                                        'libxml2/bin/libxml2.dll', 
     300                                        'gtk2/bin/libglib-2.0-0.dll', 
     301                                        'gtk2/bin/libgobject-2.0-0.dll', 
     302                                        'gtk2/bin/libgdk-win32-2.0-0.dll', 
     303                                        'gtk2/bin/libgtk-win32-2.0-0.dll', 
     304                                        'gtk2/bin/intl.dll', 
     305                                        'gtk2/bin/libatk-1.0-0.dll', 
     306                                        'gtk2/bin/libcairo-2.dll', 
     307                                        'gtk2/bin/libgdk_pixbuf-2.0-0.dll', 
     308                                        'gtk2/bin/libgmodule-2.0-0.dll', 
     309                                        'gtk2/bin/libpng13.dll', 
     310                                        'gtk2/bin/libpango-1.0-0.dll', 
     311                                        'gtk2/bin/libpangocairo-1.0-0.dll', 
     312                                        'gtk2/bin/libpangowin32-1.0-0.dll', 
     313                                        'gtk2/lib/libgtkglext-win32-1.0-0.dll', 
     314                                        'gtk2/lib/libgdkglext-win32-1.0-0.dll', 
     315                                        'gtk2/lib/iconv.dll', ]: 
     316                                        cmd = 'cp -v "%s" installs' % os.path.join( srcdir, f ) 
     317                                        print cmd 
     318                                        ret = os.system( cmd ) 
     319                                        if ( ret != 0 ): 
     320                                                raise Exception( 'runtime file copy failed' ) 
     321                                for d in [ 
     322                                        'gtk2/etc', 
     323                                        'gtk2/share', 
     324                                        ]: 
     325                                        cmd = 'cp -r -v "%s" install' % os.path.join( srcdir, d ) 
     326                                        print cmd 
     327                                        ret = os.system( cmd ) 
     328                                        if ( ret != 0 ): 
     329                                                raise Exception( 'runtime directory copy failed' ) 
    274330 
    275331# parse the config statement line to produce/update an existing config list 
  • GtkRadiant/trunk/contrib/bkgrnd2d/bkgrnd2d.vcproj

    • Property svn:eol-style set to native
  • GtkRadiant/trunk/contrib/bobtoolz/bobToolz_gtk.vcproj

    • Property svn:eol-style set to native
  • GtkRadiant/trunk/contrib/camera/camera.vcproj

    • Property svn:eol-style set to native
  • GtkRadiant/trunk/contrib/gtkgensurf/gtkgensurf.vcproj

    • Property svn:eol-style set to native
  • GtkRadiant/trunk/contrib/hydratoolz/hydratoolz.vcproj

    • Property svn:eol-style set to native
  • GtkRadiant/trunk/contrib/prtview/PrtView.vcproj

    • Property svn:eol-style set to native
  • GtkRadiant/trunk/contrib/ufoai/ufoai.vcproj

    • Property svn:eol-style set to native
  • GtkRadiant/trunk/gen.vcproj

    • Property svn:eol-style set to native
  • GtkRadiant/trunk/libs/cmdlib/cmdlib.vcproj

    • Property svn:eol-style set to native
  • GtkRadiant/trunk/libs/ddslib/ddslib.vcproj

    • Property svn:eol-style set to native
  • GtkRadiant/trunk/libs/l_net/l_net.vcproj

    • Property svn:eol-style set to native
  • GtkRadiant/trunk/libs/mathlib/mathlib.vcproj

    • Property svn:eol-style set to native
  • GtkRadiant/trunk/libs/md5lib/md5lib.vcproj

    • Property svn:eol-style set to native
  • GtkRadiant/trunk/libs/picomodel/picomodel.vcproj

    • Property svn:eol-style set to native
  • GtkRadiant/trunk/libs/splines/Splines.vcproj

    • Property svn:eol-style set to native
  • GtkRadiant/trunk/libs/synapse/synapse.vcproj

    • Property svn:eol-style set to native
  • GtkRadiant/trunk/plugins/eclassfgd/fgd.vcproj

    • Property svn:eol-style set to native
  • GtkRadiant/trunk/plugins/entity/entity.vcproj

    • Property svn:eol-style set to native
  • GtkRadiant/trunk/plugins/image/image.vcproj

    • Property svn:eol-style set to native
  • GtkRadiant/trunk/plugins/imagehl/imagehl.vcproj

    • Property svn:eol-style set to native
  • GtkRadiant/trunk/plugins/imagem8/imagem8.vcproj

    • Property svn:eol-style set to native
  • GtkRadiant/trunk/plugins/imagepng/imagepng.vcproj

    • Property svn:eol-style set to native
  • GtkRadiant/trunk/plugins/imagewal/imagewal.vcproj

    • Property svn:eol-style set to native
  • GtkRadiant/trunk/plugins/map/map.vcproj

    • Property svn:eol-style set to native
  • GtkRadiant/trunk/plugins/mapxml/mapxml.vcproj

    • Property svn:eol-style set to native
  • GtkRadiant/trunk/plugins/model/model.vcproj

    • Property svn:eol-style set to native
  • GtkRadiant/trunk/plugins/sample/sample.vcproj

    • Property svn:eol-style set to native
  • GtkRadiant/trunk/plugins/shaders/shaders.vcproj

    • Property svn:eol-style set to native
  • GtkRadiant/trunk/plugins/spritemodel/spritemodel.vcproj

    • Property svn:eol-style set to native
  • GtkRadiant/trunk/plugins/surface/surface.vcproj

    • Property svn:eol-style set to native
  • GtkRadiant/trunk/plugins/surface_heretic2/surface_heretic2.vcproj

    • Property svn:eol-style set to native
  • GtkRadiant/trunk/plugins/surface_quake2/surface_quake2.vcproj

    • Property svn:eol-style set to native
  • GtkRadiant/trunk/plugins/surface_ufoai/surface_ufoai.vcproj

    • Property svn:eol-style set to native
  • GtkRadiant/trunk/plugins/textool/TexTool.vcproj

    • Property svn:eol-style set to native
  • GtkRadiant/trunk/plugins/vfspak/vfspak.vcproj

    • Property svn:eol-style set to native
  • GtkRadiant/trunk/plugins/vfspk3/vfspk3.vcproj

    • Property svn:eol-style set to native
  • GtkRadiant/trunk/plugins/vfswad/vfswad.vcproj

    • Property svn:eol-style set to native
  • GtkRadiant/trunk/radiant.sln

    • Property svn:eol-style set to native
    r198 r319  
    1010                {0B522841-BDCC-493A-BA5C-604AE2CD5756} = {0B522841-BDCC-493A-BA5C-604AE2CD5756} 
    1111                {3886C418-A41E-4AFF-BBD1-8E1E508920C9} = {3886C418-A41E-4AFF-BBD1-8E1E508920C9} 
     12                {444E6FDA-83BD-49F1-89A4-7CF716F742A8} = {444E6FDA-83BD-49F1-89A4-7CF716F742A8} 
    1213        EndProjectSection 
    1314EndProject 
     
    7374        ProjectSection(ProjectDependencies) = postProject 
    7475                {DC2F2B6B-2596-4B90-88CE-2FDE4C2FFB01} = {DC2F2B6B-2596-4B90-88CE-2FDE4C2FFB01} 
     76                {444E6FDA-83BD-49F1-89A4-7CF716F742A8} = {444E6FDA-83BD-49F1-89A4-7CF716F742A8} 
    7577        EndProjectSection 
    7678EndProject 
  • GtkRadiant/trunk/radiant/gtkmisc.cpp

    r302 r319  
    14751475  gtk_file_selection_hide_fileop_buttons (GTK_FILE_SELECTION (file_sel)); 
    14761476 
    1477   if (parent != NULL) 
    1478     gtk_window_set_transient_for (GTK_WINDOW (file_sel), GTK_WINDOW (parent)); 
     1477        if ( parent != NULL ) { 
     1478                gtk_window_set_transient_for( GTK_WINDOW( file_sel ), GTK_WINDOW( parent ) ); 
     1479        } 
    14791480 
    14801481  gtk_widget_hide (GTK_FILE_SELECTION (file_sel)->file_list->parent); 
     
    14921493    gtk_main_iteration (); 
    14931494 
    1494   filename = g_strdup(gtk_file_selection_get_filename (GTK_FILE_SELECTION (file_sel))); 
    1495  
    1496   gtk_grab_remove (file_sel); 
    1497   gtk_widget_destroy (file_sel); 
     1495  filename = g_strdup( gtk_file_selection_get_filename( GTK_FILE_SELECTION( file_sel ) ) ); 
     1496 
     1497  gtk_grab_remove( file_sel ); 
     1498  gtk_widget_destroy( file_sel ); 
    14981499 
    14991500  return filename; 
  • GtkRadiant/trunk/radiant/mainframe.cpp

    r301 r319  
    123123  {"CSGSubtract", 'U', 0x01, ID_SELECTION_CSGSUBTRACT, "menu_selection_csgsubstract"}, 
    124124  //  {"ViewGroups", 'G', 0x00, ID_VIEW_GROUPS, "menu_view_groups"}, (temporary disabled) 
     125  {"SelectFuncGroup", 'G', 0x00, ID_SELECT_FUNC_GROUP, "menu_select_func_group"}, 
    125126  {"HideSelected", 'H', 0x00, ID_VIEW_HIDESHOW_HIDESELECTED, "menu_view_hideshow_hideselected"}, 
    126127  {"ShowHidden", 'H', 0x01, ID_VIEW_HIDESHOW_SHOWHIDDEN, "menu_view_hideshow_showhidden"}, 
     
    425426    case ID_VIEW_ENTITY: g_pParentWnd->OnViewEntity (); break; 
    426427    case ID_VIEW_GROUPS: g_pParentWnd->OnViewGroups (); break; 
     428        case ID_SELECT_FUNC_GROUP: g_pParentWnd->OnSelectFuncGroup(); break; 
    427429    case ID_TOGGLEVIEW: g_pParentWnd->OnToggleview (); break; 
    428430    case ID_TOGGLEVIEW_YZ: g_pParentWnd->OnToggleviewYz (); break; 
     
    12011203  create_menu_item_with_mnemonic (menu_in_menu, _("Select _Inside"), 
    12021204                    GTK_SIGNAL_FUNC (HandleCommand), ID_SELECTION_SELECTINSIDE); 
     1205  create_menu_item_with_mnemonic (menu_in_menu, "Select Func _Group", GTK_SIGNAL_FUNC (HandleCommand), ID_SELECT_FUNC_GROUP); 
    12031206#ifndef QUAKE3 
    12041207  create_menu_item_with_mnemonic (menu_in_menu, _("Nudge Left"), 
     
    70757078} 
    70767079 
    7077 void MainFrame::OnCameraForward(bool keydown) 
     7080void MainFrame::OnSelectFuncGroup()  
     7081
     7082        // check to see if the selected brush is part of a func group 
     7083        // if it is, deselect everything and reselect the next brush  
     7084        // in the group 
     7085        brush_t *b2, *b = selected_brushes.next; 
     7086        entity_t * e; 
     7087        if (b != &selected_brushes) 
     7088        { 
     7089                if (strcmpi(b->owner->eclass->name, "worldspawn") != 0) 
     7090                { 
     7091                        e = b->owner; 
     7092                        Select_SelectGroup(e); 
     7093                } 
     7094        } 
     7095
     7096 
     7097void MainFrame::OnCameraForward(bool keydown)  
    70787098{ 
    70797099  if (g_PrefsDlg.m_bCamDiscrete && (m_pCamWnd && !m_pCamWnd->m_bFreeMove) ) 
  • GtkRadiant/trunk/radiant/mainframe.h

    r280 r319  
    408408#define ID_COLORS_MAJOR_ALT             40231 
    409409 
     410#define ID_SELECT_FUNC_GROUP                    40233 
     411 
    410412// those must have their own ID chunk ID_GRID_025 <= ID_GRID <= ID_GRID_256 
    411413#define ID_GRID_025                     40300 
     
    892894  void OnFilterClusterportals(); 
    893895  void OnFilterLightgrid(); 
     896  void OnSelectFuncGroup(); 
    894897 
    895898private: 
  • GtkRadiant/trunk/radiant/missing.cpp

    r302 r319  
    209209 
    210210bool radCreateDirectory( const char *directory ) { 
    211         return CreateDirectory( directory, NULL ) != false
     211        return ( CreateDirectory( directory, NULL ) != false )
    212212} 
    213213 
    214214bool radCopyFile( const char *lpExistingFileName, const char *lpNewFileName ) { 
    215         return CopyFile( lpExistingFileName, lpNewFileName, FALSE ) != false
     215        return ( CopyFile( lpExistingFileName, lpNewFileName, FALSE ) != false )
    216216} 
    217217 
     
    240240                        case PATH_DIRECTORY: { 
    241241                                if ( CheckFile( dstEntry.GetBuffer() ) == PATH_FAIL ) { 
    242                                         radCreateDirectory( dstEntry.GetBuffer() ); 
     242                                        if ( !radCreateDirectory( dstEntry.GetBuffer() ) ) { 
     243                                                Sys_Printf( "create directory %s failed\n", dstEntry.GetBuffer() ); 
     244                                                return false; 
     245                                        } 
    243246                                } 
    244247                                bool ret; 
  • GtkRadiant/trunk/radiant/preferences.cpp

    r301 r319  
    32303230 
    32313231        CGameInstall* i = static_cast<CGameInstall*>( data ); 
    3232         char *dir = dir_dialog( widget, _("Select game directory"), NULL ); 
     3232        char *dir = dir_dialog( i->m_pWidget, _("Select game directory"), NULL ); 
    32333233 
    32343234        i->UpdateData( TRUE ); 
     
    32373237                i->m_strEngine = dir; 
    32383238                i->UpdateData( FALSE ); 
    3239                 free( dir ); 
     3239                g_free( dir ); 
    32403240        } 
    32413241} 
     
    33713371 
    33723372        FILE *fg = fopen( gameFilePath.GetBuffer(), "w" ); 
    3373         if ( fg == NULL ) { 
     3373        if ( fg == NULL || ferror( fg ) ) { 
    33743374                Error( "Failed to open %s for writing\n", gameFilePath.GetBuffer() ); 
    33753375        } 
  • GtkRadiant/trunk/radiant/radiant.vcproj

    • Property svn:eol-style set to native
  • GtkRadiant/trunk/radiant/select.cpp

    r301 r319  
    13721372        Sys_UpdateWindows (W_ALL); 
    13731373} 
     1374 
     1375void Select_SelectGroup(entity_t* group) 
     1376{ 
     1377        brush_t*  b; 
     1378        //brush_t*  next; 
     1379 
     1380        Undo_Start ("select func group"); 
     1381        Undo_AddBrushList (&selected_brushes); 
     1382        Undo_End(); 
     1383 
     1384        Select_Deselect(); 
     1385 
     1386        b = &group->brushes; 
     1387 
     1388        do 
     1389        { 
     1390                b = b->onext; 
     1391                Brush_RemoveFromList(b); 
     1392                Brush_AddToList(b, &selected_brushes); 
     1393        } while( b->onext != &group->brushes ); 
     1394 
     1395        Sys_UpdateWindows (W_ALL); 
     1396} 
     1397 
    13741398 
    13751399void Select_Ungroup(void) 
  • GtkRadiant/trunk/radiant/select.h

    r183 r319  
    6666void Select_FitTexture(int nHeight = 1, int nWidth = 1); 
    6767 
     68void Select_SelectGroup(entity_t* group); 
     69 
    6870// absolute texture coordinates 
    6971// TTimo NOTE: this is stuff for old brushes format and rotation texture lock .. sort of in-between with bush primitives 
  • GtkRadiant/trunk/tools/quake2/q2map/q2map.vcproj

    • Property svn:eol-style set to native
  • GtkRadiant/trunk/tools/quake2/qdata/qdata3.vcproj

    • Property svn:eol-style set to native
  • GtkRadiant/trunk/tools/quake2/qdata_heretic2/qdata3_heretic2.vcproj

    • Property svn:eol-style set to native
  • GtkRadiant/trunk/tools/quake3/q3data/q3data.vcproj

    • Property svn:eol-style set to native
  • GtkRadiant/trunk/tools/quake3/q3map2/bsp.c

    r302 r319  
    4646 
    4747 
     48/* 
     49ProcessAdvertisements() 
     50copies advertisement info into the BSP structures 
     51*/ 
     52 
     53static void ProcessAdvertisements( void ) { 
     54        int                                     i; 
     55        const char*                     className; 
     56        const char*                     modelKey; 
     57        int                                     modelNum; 
     58        bspModel_t*                     adModel; 
     59        bspDrawSurface_t*       adSurface; 
     60 
     61        Sys_FPrintf( SYS_VRB, "--- ProcessAdvertisements ---\n" ); 
     62 
     63        for( i = 0; i < numEntities; i++ ) { 
     64 
     65                /* is an advertisement? */ 
     66                className = ValueForKey( &entities[ i ], "classname" ); 
     67 
     68                if( !Q_stricmp( "advertisement", className ) ) { 
     69                         
     70                        modelKey = ValueForKey( &entities[ i ], "model" ); 
     71 
     72                        if( strlen( modelKey ) > MAX_QPATH - 1 ) { 
     73                                Error( "Model Key for entity exceeds ad struct string length." ); 
     74                        } else { 
     75                                if( numBSPAds < MAX_MAP_ADVERTISEMENTS ) { 
     76                                        bspAds[numBSPAds].cellId = IntForKey( &entities[ i ], "cellId" ); 
     77                                        strncpy( bspAds[numBSPAds].model, modelKey, sizeof( bspAds[numBSPAds].model ) ); 
     78 
     79                                        modelKey++; 
     80                                        modelNum = atoi( modelKey ); 
     81                                        adModel = &bspModels[modelNum]; 
     82                                         
     83                                        if( adModel->numBSPSurfaces != 1 ) { 
     84                                                Error( "Ad cell id %d has more than one surface.", bspAds[numBSPAds].cellId ); 
     85                                        } 
     86 
     87                                        adSurface = &bspDrawSurfaces[adModel->firstBSPSurface]; 
     88                                         
     89                                        // store the normal for use at run time.. all ad verts are assumed to  
     90                                        // have identical normals (because they should be a simple rectangle) 
     91                                        // so just use the first vert's normal 
     92                                        VectorCopy( bspDrawVerts[adSurface->firstVert].normal, bspAds[numBSPAds].normal ); 
     93 
     94                                        // store the ad quad for quick use at run time 
     95                                        if( adSurface->surfaceType == MST_PATCH ) { 
     96                                                int v0 = adSurface->firstVert + adSurface->patchHeight - 1; 
     97                                                int v1 = adSurface->firstVert + adSurface->numVerts - 1; 
     98                                                int v2 = adSurface->firstVert + adSurface->numVerts - adSurface->patchWidth; 
     99                                                int v3 = adSurface->firstVert; 
     100                                                VectorCopy( bspDrawVerts[v0].xyz, bspAds[numBSPAds].rect[0] ); 
     101                                                VectorCopy( bspDrawVerts[v1].xyz, bspAds[numBSPAds].rect[1] ); 
     102                                                VectorCopy( bspDrawVerts[v2].xyz, bspAds[numBSPAds].rect[2] ); 
     103                                                VectorCopy( bspDrawVerts[v3].xyz, bspAds[numBSPAds].rect[3] ); 
     104                                        } else { 
     105                                                Error( "Ad cell %d has an unsupported Ad Surface type.", bspAds[numBSPAds].cellId ); 
     106                                        } 
     107 
     108                                        numBSPAds++; 
     109                                } else { 
     110                                        Error( "Maximum number of map advertisements exceeded." ); 
     111                                } 
     112                        } 
     113                } 
     114        } 
     115 
     116        Sys_FPrintf( SYS_VRB, "%9d in-game advertisements\n", numBSPAds ); 
     117} 
    48118 
    49119/* 
     
    846916        SetLightStyles(); 
    847917         
     918        /* process in game advertisements */ 
     919        ProcessAdvertisements(); 
     920 
    848921        /* finish and write bsp */ 
    849922        EndBSPFile(); 
  • GtkRadiant/trunk/tools/quake3/q3map2/bspfile_abstract.c

    r302 r319  
    240240                bspFogs[ i ].brushNum = LittleLong( bspFogs[ i ].brushNum ); 
    241241                bspFogs[ i ].visibleSide = LittleLong( bspFogs[ i ].visibleSide ); 
     242        } 
     243 
     244        /* advertisements */ 
     245        for( i = 0; i < numBSPAds; i++ ) 
     246        { 
     247                bspAds[ i ].cellId = LittleLong( bspAds[ i ].cellId ); 
     248                bspAds[ i ].normal[ 0 ] = LittleFloat( bspAds[ i ].normal[ 0 ] ); 
     249                bspAds[ i ].normal[ 1 ] = LittleFloat( bspAds[ i ].normal[ 1 ] ); 
     250                bspAds[ i ].normal[ 2 ] = LittleFloat( bspAds[ i ].normal[ 2 ] ); 
     251 
     252                for( j = 0; j < 4; j++ )  
     253                { 
     254                        bspAds[ i ].rect[j][ 0 ] = LittleFloat( bspAds[ i ].rect[j][ 0 ] ); 
     255                        bspAds[ i ].rect[j][ 1 ] = LittleFloat( bspAds[ i ].rect[j][ 1 ] ); 
     256                        bspAds[ i ].rect[j][ 2 ] = LittleFloat( bspAds[ i ].rect[j][ 2 ] ); 
     257                } 
     258 
     259                //bspAds[ i ].model[ MAX_QPATH ]; 
    242260        } 
    243261} 
  • GtkRadiant/trunk/tools/quake3/q3map2/bspfile_ibsp.c

    r302 r319  
    6565#define LUMP_LIGHTGRID          15 
    6666#define LUMP_VISIBILITY         16 
    67 #define HEADER_LUMPS            17 
     67#define LUMP_ADVERTISEMENTS 17 
     68#define HEADER_LUMPS            18 
    6869 
    6970 
     
    454455} 
    455456 
    456  
    457  
    458457/* 
    459458LoadIBSPFile() 
     
    514513         
    515514        CopyLightGridLumps( header ); 
    516          
     515 
     516        /* advertisements */ 
     517        numBSPAds = CopyLump( (bspHeader_t*) header, LUMP_ADVERTISEMENTS, bspAds, sizeof( bspAdvertisement_t ) ); 
     518 
    517519        /* free the file buffer */ 
    518520        free( header ); 
     
    572574        AddLump( file, (bspHeader_t*) header, LUMP_FOGS, bspFogs, numBSPFogs * sizeof( bspFog_t ) ); 
    573575        AddLump( file, (bspHeader_t*) header, LUMP_DRAWINDEXES, bspDrawIndexes, numBSPDrawIndexes * sizeof( bspDrawIndexes[ 0 ] ) ); 
    574          
     576 
     577        /* advertisements */ 
     578        AddLump( file, (bspHeader_t*) header, LUMP_ADVERTISEMENTS, bspAds, numBSPAds * sizeof( bspAdvertisement_t ) ); 
     579 
    575580        /* emit bsp size */ 
    576581        size = ftell( file ); 
  • GtkRadiant/trunk/tools/quake3/q3map2/game_quake3.h

    r302 r319  
    115115        1.0f,                           /* lightmap compensate */ 
    116116        "IBSP",                         /* bsp file prefix */ 
    117         46,                                   /* bsp file version */ 
     117        47,                                   /* bsp file version */ 
    118118        qfalse,                         /* cod-style lump len/ofs order */ 
    119119        LoadIBSPFile,           /* bsp load function */ 
     
    180180                { "dust",                       0,                                                      0,                                                      Q_SURF_DUST,                            0,                                                      0,                                                      0 }, 
    181181                 
    182                  
    183182                /* null */ 
    184183                { NULL, 0, 0, 0, 0, 0, 0 } 
  • GtkRadiant/trunk/tools/quake3/q3map2/light.c

    r302 r319  
    340340                        Error( "Invalid lightstyle (%d) on entity %d", light->style, i ); 
    341341                 
    342                 /* override */ 
    343                 if( noStyles ) 
    344                        light->style = LS_NORMAL; 
    345                  
     342                if( light->style != LS_NORMAL ) { 
     343                       Sys_FPrintf (SYS_WRN, "WARNING: Styled light found targeting %s\n **", target ); 
     344                } 
     345 
    346346                /* set light intensity */ 
    347347                intensity = FloatForKey( e, "_light" ); 
  • GtkRadiant/trunk/tools/quake3/q3map2/q3map2.h

    r302 r319  
    170170#define C_SKIP                                  0x00008000      /* like hint, but skips this face (doesn't split bsp) */ 
    171171#define C_NOMARKS                               0x00010000      /* no decals */ 
    172  
    173172#define C_DETAIL                                0x08000000      /* THIS MUST BE THE SAME AS IN RADIANT! */ 
    174173 
     
    324323#define MAX_MAP_DRAW_INDEXES    0x80000 
    325324 
     325#define MAX_MAP_ADVERTISEMENTS  30 
    326326 
    327327/* key / value pair sizes in the entities lump */ 
     
    502502bspDrawSurface_t; 
    503503 
     504 
     505/* advertisements */ 
     506typedef struct { 
     507        int                     cellId; 
     508        vec3_t          normal; 
     509        vec3_t          rect[4]; 
     510        char            model[ MAX_QPATH ]; 
     511} bspAdvertisement_t; 
    504512