Changeset 195

Show
Ignore:
Timestamp:
02/18/08 14:54:58 (6 months ago)
Author:
timo
Message:

apply patch from Martin Gerhardy - more quake2 related modules compiled and misc fixes

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • GtkRadiant/branches/ZeroRadiant/SConscript.module

    r180 r195  
    1818if ( libname == 'surface' ): 
    1919        useGtk = True 
     20if ( libname == 'surface_quake2' ): 
     21        useGtk = True 
     22if ( libname == 'surface_heretic2' ): 
     23        useGtk = True 
     24if ( libname == 'bkgrnd2d' ): 
     25        useGtk = True 
     26if ( libname == 'gtkgensurf' ): 
     27        useGtk = True 
     28if ( libname == 'bobToolz_gtk' ): 
     29        useGtk = True 
     30if ( libname == 'camera' ): 
     31        useGtk = True 
     32if ( libname == 'PrtView' ): 
     33        useGtk = True 
     34if ( libname == 'spritemodel' ): 
     35        useGtk = True 
     36if ( libname == 'TexTool' ): 
     37        useGtk = True 
     38 
    2039settings.SetupEnvironment( env, config['name'], useGtk = useGtk, useJPEG = useJPEG ) 
    2140proj = utils.vcproj( os.path.join( GetLaunchDir(), project ) ) 
  • GtkRadiant/branches/ZeroRadiant/config.py

    r193 r195  
    101101 
    102102                        for project in [ 'plugins/vfspk3/vfspk3.vcproj', 
     103                                         'plugins/vfspak/vfspak.vcproj', 
     104                                         'plugins/vfswad/vfswad.vcproj', 
     105                                         'plugins/eclassfgd/fgd.vcproj', 
     106                                         'plugins/entity/entity.vcproj', 
    103107                                         'plugins/image/image.vcproj', 
    104                                          'plugins/entity/entity.vcproj', 
     108                                        # FIXME: Fix linker flags - xml2, z  
     109                                        # 'plugins/imagepng/imagepng.vcproj', 
     110                                         'plugins/imagewal/imagewal.vcproj', 
     111                                         'plugins/imagem8/imagem8.vcproj', 
     112                                         'plugins/spritemodel/spritemodel.vcproj', 
     113                                         'plugins/textool/TexTool.vcproj', 
    105114                                         'plugins/map/map.vcproj', 
    106115                                         'plugins/mapxml/mapxml.vcproj', 
    107116                                         'plugins/shaders/shaders.vcproj', 
    108                                          'plugins/surface/surface.vcproj' 
    109                                          ]: 
     117                                         'plugins/surface/surface.vcproj', 
     118                                         'plugins/surface_quake2/surface_quake2.vcproj', 
     119                                         'plugins/surface_heretic2/surface_heretic2.vcproj', 
     120                                        # FIXME Needs splines 
     121                                        # 'contrib/camera/camera.vcproj', 
     122 
     123                                        # FIXME What is this? Empty dir for me - remove me? 
     124                                        # 'contrib/patches/patches.vcproj', 
     125                                        # 'contrib/archivewad/archivewad.vcproj', 
     126 
     127                                        # FIXME Doesn't compile cleanly 
     128                                        # 'contrib/prtview/PrtView.vcproj', 
     129                                         'contrib/hydratoolz/hydratoolz.vcproj', 
     130                                         'contrib/bobtoolz/bobToolz_gtk.vcproj', 
     131                                         'contrib/gtkgensurf/gtkgensurf.vcproj', 
     132                                         'contrib/bkgrnd2d/bkgrnd2d.vcproj' 
     133                                 ]: 
    110134                                ( libpath, libname ) = os.path.split( project ) 
    111135                                libname = os.path.splitext( libname )[0] 
     
    113137                                if ( libname == 'entity' ): 
    114138                                        shlib_objects += shlib_objects_extra['mathlib'] 
    115                                 if ( libname == 'map' ): 
     139#                               elif ( libname == 'spritemodel' ): 
     140#                                       shlib_objects += shlib_objects_extra['mathlib'] 
     141#                               elif ( libname == 'TexTool' ): 
     142#                                       shlib_objects += shlib_objects_extra['mathlib'] 
     143                                elif ( libname == 'map' ): 
    116144                                        shlib_objects += shlib_objects_extra['cmdlib'] 
    117145                                Export( 'project', 'shlib_objects' ) 
     
    126154                        config['shared'] = False 
    127155                        Export( 'utils', 'settings', 'config' ) 
    128                         build_dir = os.path.join( 'build', config_name, 'radiant' ) 
     156                        build_dir = os.path.join( 'build', config_name, 'q3map2' ) 
    129157                        BuildDir( build_dir, '.', duplicate = 0 ) 
    130158                        lib_objects = [] 
  • GtkRadiant/branches/ZeroRadiant/contrib/bobtoolz/DBrush.cpp

    r185 r195  
    3030#include "DBrush.h" 
    3131#include "DWinding.h" 
    32 #include "dialogs-gtk.h" 
     32#include "dialogs/dialogs-gtk.h" 
    3333 
    3434#include "misc.h" 
     
    389389        if(entity) { 
    390390                g_FuncTable.m_pfnCommitBrushHandleToEntity(QER_brush, entity); 
    391                 g_BrushTable.m_pfnBrush_Build(QER_brush); 
     391                g_BrushTable.m_pfnBrush_Build(QER_brush, false, false, false, false); 
    392392                g_BrushTable.m_pfnBrush_AddToList(QER_brush, g_AppDataTable.m_pfnSelectedBrushes()); 
    393393        } else { 
  • GtkRadiant/branches/ZeroRadiant/contrib/bobtoolz/DEntity.cpp

    r185 r195  
    3030#include "DEntity.h" 
    3131 
    32 #include "dialogs-gtk.h" 
     32#include "dialogs/dialogs-gtk.h" 
    3333#include "misc.h" 
    3434#include "CPortals.h" 
  • GtkRadiant/branches/ZeroRadiant/contrib/camera/funchandlers.cpp

    r185 r195  
    103103 
    104104        if( firstCam && firstCam->HasBeenSaved() ) 
    105     ExtractFilePath( firstCam->GetFileName(), basepath ); 
     105    CAMERA_ExtractFilePath( firstCam->GetFileName(), basepath ); 
    106106  else 
    107107    strcpy( basepath, g_FuncTable.m_pfnGetGamePath() ); 
     
    158158 
    159159  if( GetCurrentCam()->GetFileName()[0] ) 
    160     ExtractFilePath( GetCurrentCam()->GetFileName(), basepath ); 
     160    CAMERA_ExtractFilePath( GetCurrentCam()->GetFileName(), basepath ); 
    161161  else 
    162162    strcpy( basepath, g_FuncTable.m_pfnGetGamePath() ); 
  • GtkRadiant/branches/ZeroRadiant/contrib/camera/misc.cpp

    r185 r195  
    5353} 
    5454 
    55 void ExtractFilePath( const char *path, char *dest ) 
     55void CAMERA_ExtractFilePath( const char *path, char *dest ) 
    5656{ 
    5757  const char *src; 
  • GtkRadiant/branches/ZeroRadiant/contrib/camera/misc.h

    r183 r195  
    2727void Sys_ERROR( char* text, ... ); 
    2828char* UnixToDosPath( char* path ); 
    29 void ExtractFilePath( const char *path, char *dest ); 
     29void CAMERA_ExtractFilePath( const char *path, char *dest ); 
    3030const char* ExtractFilename( const char* path ); 
    3131bool FileExists (const char *filename); 
  • GtkRadiant/branches/ZeroRadiant/contrib/gtkgensurf/bitmap.cpp

    r185 r195  
    162162  { 
    163163    g_FuncTable.m_pfnMessageBox (g_pWnd, "This is not an 8-bit image. GenSurf can't use it.", 
    164                                  "Bitmap", MB_ICONEXCLAMATION); 
     164                                 "Bitmap", MB_ICONEXCLAMATION, NULL); 
    165165    fclose(fp); 
    166166    return NULL;  
     
    418418 
    419419    sprintf (Text, "Error opening %s", gbmp.name); 
    420     g_FuncTable.m_pfnMessageBox (g_pWnd, Text, "Bitmap", MB_ICONEXCLAMATION); 
     420    g_FuncTable.m_pfnMessageBox (g_pWnd, Text, "Bitmap", MB_ICONEXCLAMATION, NULL); 
    421421    strcpy (gbmp.name, ""); 
    422422  } 
  • GtkRadiant/branches/ZeroRadiant/contrib/gtkgensurf/dec.cpp

    r185 r195  
    151151                                g_FuncTable.m_pfnMessageBox(g_pRadiantWnd, 
    152152                                        "Error: Couldn't find the triangle bounding a point.", 
    153                                         "Decimation Error",MB_ICONEXCLAMATION); 
     153                                        "Decimation Error",MB_ICONEXCLAMATION, NULL); 
    154154                                return; 
    155155                        } 
     
    250250                                g_FuncTable.m_pfnMessageBox(g_pRadiantWnd, 
    251251                                        "Error: Couldn't find the triangle bounding a point.", 
    252                                         "Decimation Error",MB_ICONEXCLAMATION); 
     252                                        "Decimation Error",MB_ICONEXCLAMATION, NULL); 
    253253                                return; 
    254254                        } 
  • GtkRadiant/branches/ZeroRadiant/contrib/gtkgensurf/face.cpp

    r185 r195  
    2929#define SIDE_CROSS              -2 
    3030 
    31 vec3 vec3_origin = {0,0,0}
     31vec3 gensurf_vec3_origin
    3232 
    3333void PlaneFromPoints (float *p0, float *p1, float *p2, PLANE *plane) 
     
    134134        if (x==-1) x = 2; 
    135135                 
    136         VectorCopy(vec3_origin,vup); 
     136        VectorCopy(gensurf_vec3_origin,vup); 
    137137        switch (x) 
    138138        { 
     
    357357 
    358358                PlaneFromPoints (planepts[0], planepts[1], planepts[2], &plane[2*i]); 
    359                 VectorSubtract (vec3_origin, plane[2*i].normal, plane[2*i+1].normal); 
     359                VectorSubtract (gensurf_vec3_origin, plane[2*i].normal, plane[2*i+1].normal); 
    360360                plane[2*i+1].dist = -plane[2*i].dist; 
    361361 
  • GtkRadiant/branches/ZeroRadiant/contrib/gtkgensurf/gendlgs.cpp

    r185 r195  
    9999                                                                                                                         "Pablo Zurita (pablo@qeradiant.com)\n" 
    100100                                                                                                                         "Hydra (hydra@hydras-world.com)", 
    101                                "About GtkGenSurf", MB_OK); 
     101                               "About GtkGenSurf", MB_OK, NULL); 
    102102} 
    103103 
     
    718718  { 
    719719    sprintf (Text, "The number of divisions must be > 0 and no greater than %d.", MAX_ROWS); 
    720     g_FuncTable.m_pfnMessageBox (g_pWnd, Text, "GenSurf", MB_ICONEXCLAMATION); 
     720    g_FuncTable.m_pfnMessageBox (g_pWnd, Text, "GenSurf", MB_ICONEXCLAMATION, NULL); 
    721721    gtk_notebook_set_page (GTK_NOTEBOOK (notebook), EXTENTS_TAB); 
    722722    return; 
     
    726726  { 
    727727    sprintf (Text, "The number of divisions must be > 0 and no greater than %d.", MAX_ROWS); 
    728     g_FuncTable.m_pfnMessageBox (g_pWnd, Text, "GenSurf", MB_ICONEXCLAMATION); 
     728    g_FuncTable.m_pfnMessageBox (g_pWnd, Text, "GenSurf", MB_ICONEXCLAMATION, NULL); 
    729729    gtk_notebook_set_page (GTK_NOTEBOOK (notebook), EXTENTS_TAB); 
    730730    return; 
     
    735735    g_FuncTable.m_pfnMessageBox (g_pWnd, "The \"lower-left\" values must be less than " 
    736736                                 "the corresponding \"upper-right\" values in " 
    737                                  "the \"Extent\" box.","GenSurf", MB_OK | MB_ICONEXCLAMATION); 
     737                                 "the \"Extent\" box.","GenSurf", MB_OK | MB_ICONEXCLAMATION, NULL); 
    738738    gtk_notebook_set_page (GTK_NOTEBOOK (notebook), EXTENTS_TAB); 
    739739    return; 
     
    744744    g_FuncTable.m_pfnMessageBox (g_pWnd,"The \"lower-left\" values must be less than " 
    745745                                 "the corresponding \"upper-right\" values in " 
    746                                  "the \"Extent\" box.","GenSurf", MB_OK | MB_ICONEXCLAMATION); 
     746                                 "the \"Extent\" box.","GenSurf", MB_OK | MB_ICONEXCLAMATION, NULL); 
    747747    gtk_notebook_set_page (GTK_NOTEBOOK (notebook), EXTENTS_TAB); 
    748748    return; 
     
    751751  if (!strlen (Texture[Game][0])) 
    752752  { 
    753     g_FuncTable.m_pfnMessageBox (g_pWnd, "You must supply a texture name.", "GenSurf", MB_ICONEXCLAMATION); 
     753    g_FuncTable.m_pfnMessageBox (g_pWnd, "You must supply a texture name.", "GenSurf", MB_ICONEXCLAMATION, NULL); 
    754754    gtk_notebook_set_page (GTK_NOTEBOOK (notebook), EXTENTS_TAB); 
    755755    return; 
     
    909909  char *ptr; 
    910910 
    911   filename = g_FuncTable.m_pfnFileDialog (g_pWnd, TRUE, "Bitmap File", gbmp.defpath); 
     911  filename = g_FuncTable.m_pfnFileDialog (g_pWnd, TRUE, "Bitmap File", gbmp.defpath, "gtkgensurf"); 
    912912 
    913913  if (filename != NULL) 
     
    951951    gdk_beep (); 
    952952    g_FuncTable.m_pfnMessageBox (g_pWnd, "The value must be between -65536 and 65536, inclusive.", 
    953                                  "GenSurf", MB_OK | MB_ICONEXCLAMATION); 
     953                                 "GenSurf", MB_OK | MB_ICONEXCLAMATION, NULL); 
    954954    sprintf (Text, "%d", (int)xyz[Vertex[0].i][Vertex[0].j].fixed_value); 
    955955    gtk_entry_set_text (GTK_ENTRY(widget), Text); 
  • GtkRadiant/branches/ZeroRadiant/contrib/gtkgensurf/genmap.cpp

    r185 r195  
    173173    { 
    174174      sprintf(szOops,"Oops... screwed up with NH=%d",NH); 
    175       g_FuncTable.m_pfnMessageBox(NULL,szOops,"Uh oh"); 
     175      g_FuncTable.m_pfnMessageBox(NULL,szOops,"Uh oh", 0, NULL); 
    176176    } 
    177177    NV_remain = NV+1; 
     
    205205      { 
    206206        sprintf(szOops,"Oops... screwed up with NV=%d",NV); 
    207         g_FuncTable.m_pfnMessageBox(NULL,szOops,"Uh oh"); 
     207        g_FuncTable.m_pfnMessageBox(NULL,szOops,"Uh oh", 0, NULL); 
    208208      } 
    209209 
     
    19821982  if(g_FuncTable.m_pfnCreateBrushHandle==NULL) 
    19831983  { 
    1984     g_FuncTable.m_pfnMessageBox(g_pRadiantWnd,"m_pfnCreateBrushHandle==NULL","Aw damn",0); 
     1984    g_FuncTable.m_pfnMessageBox(g_pRadiantWnd,"m_pfnCreateBrushHandle==NULL","Aw damn",0, NULL); 
    19851985    return; 
    19861986  } 
  • GtkRadiant/branches/ZeroRadiant/contrib/gtkgensurf/gensurf.cpp

    r185 r195  
    398398{ 
    399399  const char *name = g_FuncTable.m_pfnFileDialog (parent, false, "Save GenSurf Settings", 
    400                                              g_FuncTable.m_pfnProfileGetDirectory ()); 
     400                                             g_FuncTable.m_pfnProfileGetDirectory (), "gtkgensurf"); 
    401401 
    402402  if (name != NULL) 
     
    437437  else 
    438438    name = g_FuncTable.m_pfnFileDialog (parent, true, "Open GenSurf Settings", 
    439                                         g_FuncTable.m_pfnProfileGetDirectory ()); 
     439                                        g_FuncTable.m_pfnProfileGetDirectory (), "gtkgensurf"); 
    440440 
    441441  if(name != NULL) 
  • GtkRadiant/branches/ZeroRadiant/contrib/hydratoolz/plugin.cpp

    r185 r195  
    7070==================== 
    7171*/ 
    72 void ExtractFilePath (const char *path, char *dest) 
     72void HYDRA_ExtractFilePath (const char *path, char *dest) 
    7373{ 
    7474  const char *src; 
     
    8686} 
    8787 
    88 void ExtractFileName (const char *path, char *dest) 
     88void HYDRA_ExtractFileName (const char *path, char *dest) 
    8989{ 
    9090  const char *src; 
     
    106106} 
    107107 
    108 void ConvertDOSToUnixName( char *dst, const char *src ) 
     108void HYDRA_ConvertDOSToUnixName( char *dst, const char *src ) 
    109109{ 
    110110  while ( *src ) 
     
    137137    if (strcmp(shadername,"color") == 0) 
    138138      return wadlist; 
    139     ExtractFilePath(shadername,tmpstr); 
     139    HYDRA_ExtractFilePath(shadername,tmpstr); 
    140140    // Sys_Printf("checking: %s\n",shadername); 
    141141 
     
    150150    } 
    151151 
    152     ExtractFileName(tmpstr,tmpstr); 
     152    HYDRA_ExtractFileName(tmpstr,tmpstr); 
    153153 
    154154    wadname = (char *)malloc(strlen(tmpstr) + 5); 
     
    201201    { 
    202202      strcpy(wads,pEpair->value); 
    203       ConvertDOSToUnixName(wads,wads); 
     203      HYDRA_ConvertDOSToUnixName(wads,wads); 
    204204 
    205205      Sys_Printf("HydraToolz: Current wad key is \"%s\"!\n",wads); 
     
    218218        if (strchr(p1,'/') || strchr(p1,'\\')) 
    219219        { 
    220           ExtractFileName(p1,cleanwadname); 
     220          HYDRA_ExtractFileName(p1,cleanwadname); 
    221221          wadlist = AddToWadList (wadlist, NULL, cleanwadname); 
    222222        } 
     
    296296        strcat(wads,";"); 
    297297 
    298       actualwad = vfsGetFullPath((char *)wadlist->data); 
     298      actualwad = vfsGetFullPath((char *)wadlist->data, 0, 0); 
    299299 
    300300      if (actualwad) 
  • GtkRadiant/branches/ZeroRadiant/contrib/prtview/AboutDialog.cpp

    r185 r195  
    2222 
    2323#include "stdafx.h" 
     24#include "AboutDialog.h" 
    2425 
    2526#ifdef _DEBUG 
  • GtkRadiant/branches/ZeroRadiant/contrib/prtview/stdafx.h

    r183 r195  
    6161#include "prtview.h" 
    6262#include "portals.h" 
     63#include "resource.h"           // main symbols 
    6364 
    6465#define MSG_PREFIX "Portal Viewer plugin: " 
  • GtkRadiant/branches/ZeroRadiant/include/igl.h

    r183 r195  
    3939{ 
    4040public: 
     41        virtual ~IGL2DWindow() { } 
    4142        // Increment the number of references to this object 
    4243        virtual void IncRef () = 0; 
     
    5051{ 
    5152public: 
     53        virtual ~IGL3DWindow() { } 
    5254  // Increment the number of references to this object 
    5355  virtual void IncRef () = 0; 
  • GtkRadiant/branches/ZeroRadiant/include/ishaders.h

    r183 r195  
    5656{ 
    5757public: 
     58        virtual ~IShader() { } 
    5859  // Increment the number of references to this object 
    5960  virtual void IncRef () = 0; 
  • GtkRadiant/branches/ZeroRadiant/include/isurfaceplugin.h

    r183 r195  
    4545{ 
    4646public: 
     47        virtual ~IPluginTexdef() { } 
    4748        // Increment the number of references to this object 
    4849        virtual void IncRef () = 0; 
  • GtkRadiant/branches/ZeroRadiant/include/itoolbar.h

    r183 r195  
    4242  }; 
    4343 
     44  virtual ~IToolbarButton() { } 
    4445  virtual const char* getImage() const = 0; 
    4546  virtual const char* getText() const = 0; 
  • GtkRadiant/branches/ZeroRadiant/include/iui.h

    r183 r195  
    3535{ 
    3636public: 
     37        virtual ~IWindowListener() { } 
    3738  // Increment the number of references to this object 
    3839  virtual void IncRef () = 0; 
     
    6667{ 
    6768public: 
     69        virtual ~IWindow() {} 
    6870  // Increment the number of references to this object 
    6971  virtual void IncRef () = 0; 
     
    108110{ 
    109111public: 
     112        virtual ~IListener() {} 
    110113  // Increment the number of references to this object 
    111114  virtual void IncRef () = 0; 
     
    120123{ 
    121124public: 
     125        virtual ~IXYWndWrapper() {} 
    122126  virtual void SnapToGrid( int x1, int y1, vec3_t pt ) = 0; 
    123127  virtual VIEWTYPE GetViewType( void ) = 0; 
  • GtkRadiant/branches/ZeroRadiant/include/qerplugin.h

    r183 r195  
    581581{ 
    582582public: 
     583        virtual ~IModelCache() { } 
    583584  virtual entity_interfaces_t *GetByID(const char *id, const char* version) = 0; 
    584585  virtual void DeleteByID(const char *id, const char* version) = 0; 
     
    591592{ 
    592593public: 
     594        virtual ~IFileTypeList() { } 
    593595  virtual void addType(filetype_t type) = 0; 
    594596}; 
     
    597599{ 
    598600public: 
     601        virtual ~IFileTypeRegistry() { } 
    599602  virtual void addType(const char* key, filetype_t type) = 0; 
    600603  virtual void getTypeList(const char* key, IFileTypeList* typelist) = 0; 
  • GtkRadiant/branches/ZeroRadiant/plugins/imagehl/lbmlib.cpp

    r185 r195  
    144144  // load the file 
    145145  // 
    146   length = vfsLoadFile ((char *) name, (void **) &buffer); 
     146  length = vfsLoadFile ((char *) name, (void **) &buffer, 0); 
    147147  if (length == (unsigned int) -1) 
    148148    return; 
     
    330330  // load the file 
    331331  // 
    332   length = vfsLoadFile ((char *) name, (void **) &buffer); 
     332  length = vfsLoadFile ((char *) name, (void **) &buffer, 0); 
    333333  if (length == (unsigned int) -1) 
    334334    return; 
     
    515515  // load the file 
    516516  // 
    517   length = vfsLoadFile ((char *) name, (void **) &buffer); 
     517  length = vfsLoadFile ((char *) name, (void **) &buffer, 0); 
    518518  if (length == (unsigned int) -1) 
    519519    return; 
     
    523523  mipdatasize = GET_MIP_DATA_SIZE(lpMip->width,lpMip->height); 
    524524 
    525   palettelength = vfsLoadFile ("textures/palette.lmp", (void **) &loadedpalette); 
     525  palettelength = vfsLoadFile ("textures/palette.lmp", (void **) &loadedpalette, 0); 
    526526  if (palettelength == 768) 
    527527    palette = loadedpalette; 
  • GtkRadiant/branches/ZeroRadiant/plugins/imagem8/m32.cpp

    r185 r195  
    3737 
    3838    // open file 
    39     if ( length = vfsLoadFile ((char *) name, (void **) &m32_file_buffer) == (unsigned int) -1) 
     39    if ( length = vfsLoadFile ((char *) name, (void **) &m32_file_buffer, 0) == (unsigned int) -1) 
    4040    { 
    4141        Sys_Printf("Unable to open file %s\n",name); 
  • GtkRadiant/branches/ZeroRadiant/plugins/imagem8/m8.cpp

    r185 r195  
    4545 
    4646    // open file 
    47     if ( length = vfsLoadFile ((char *) text_buf, (void **) &m8_file_buffer) == (unsigned int) -1) 
     47       if ( length = vfsLoadFile ((char *) text_buf, (void **) &m8_file_buffer, 0) == (unsigned int) -1) 
    4848    { 
    4949        strcpy(text_buf, name); 
     
    5757        } 
    5858        strcat(text_buf, ".m8"); 
    59         if ( length = vfsLoadFile ((char *) text_buf, (void **) &m8_file_buffer) == (unsigned int) -1) 
     59        if ( length = vfsLoadFile ((char *) text_buf, (void **) &m8_file_buffer, 0) == (unsigned int) -1) 
    6060        { 
    6161                Sys_Printf("Unable to open file %s\n",name); 
  • GtkRadiant/branches/ZeroRadiant/plugins/imagewal/wal.cpp

    r185 r195  
    4141 
    4242    // open file 
    43     if ( length = vfsLoadFile ((char *) name, (void **) &wal_file_buffer) == (unsigned int) -1) 
     43    if ( length = vfsLoadFile ((char *) name, (void **) &wal_file_buffer, 0) == (unsigned int) -1) 
    4444    { 
    4545        Sys_Printf("Unable to open file %s\n",name); 
  • GtkRadiant/branches/ZeroRadiant/plugins/surface_heretic2/surfacedialog.cpp

    r185 r195  
    645645    g_bListenUpdate=FALSE; 
    646646    SetChangeInFlags_Face_Heretic2 ( get_texdef_face_list() ); 
    647     SetTexdef_FaceList( get_texdef_face_list(), b_SetUndoPoint ); 
     647    SetTexdef_FaceList( get_texdef_face_list(), b_SetUndoPoint, false ); 
    648648    g_bListenUpdate=TRUE; 
    649649 
  • GtkRadiant/branches/ZeroRadiant/plugins/surface_quake2/surfacedialog.cpp

    r185 r195  
    644644    g_bListenUpdate=FALSE; 
    645645    SetChangeInFlags_Face_Quake2 ( get_texdef_face_list() ); 
    646     SetTexdef_FaceList( get_texdef_face_list(), b_SetUndoPoint ); 
     646    SetTexdef_FaceList( get_texdef_face_list(), b_SetUndoPoint, false ); 
    647647    g_bListenUpdate=TRUE; 
    648648 
  • GtkRadiant/branches/ZeroRadiant/plugins/textool/StdAfx.cpp

    r185 r195  
    2323//      stdafx.obj will contain the pre-compiled type information 
    2424 
    25 #include "stdafx.h" 
     25#include "StdAfx.h" 
    2626 
    2727// TODO: reference any additional headers you need in STDAFX.H 
  • GtkRadiant/branches/ZeroRadiant/radiant/camwindow.h

    r183 r195  
    9292  rectangle_t m_rectangle; 
    9393 
     94  GtkWidget* m_widget; 
    9495  GdkGC* m_gc; 
    95   GtkWidget* m_widget; 
    9696}; 
    9797 
  • GtkRadiant/branches/ZeroRadiant/radiant/ui.h

    r183 r195  
    3232{ 
    3333public: 
     34        virtual ~CXYWndWrapper() {} 
    3435  void SnapToGrid( int x1, int y1, vec3_t pt ); 
    3536  VIEWTYPE GetViewType( void ); 
  • GtkRadiant/branches/ZeroRadiant/radiant/xmlstuff.h

    r191 r195  
    4545{ 
    4646public: 
     47        virtual ~ISAXHandler() { } 
    4748  virtual void saxStartElement( struct message_info_s *ctx, const xmlChar *name, const xmlChar **attrs ) = 0; 
    4849  virtual void saxEndElement( struct message_info_s *ctx, const xmlChar *name ) = 0;