Changeset 319
- Timestamp:
- 09/01/08 12:34:10 (3 months ago)
- Files:
-
- GtkRadiant/trunk/config.py (modified) (2 diffs)
- GtkRadiant/trunk/contrib/bkgrnd2d/bkgrnd2d.vcproj (modified) (1 prop)
- GtkRadiant/trunk/contrib/bobtoolz/bobToolz_gtk.vcproj (modified) (1 prop)
- GtkRadiant/trunk/contrib/camera/camera.vcproj (modified) (1 prop)
- GtkRadiant/trunk/contrib/camera/camera_VC9.vcproj (copied) (copied from GtkRadiant/branches/timo/contrib/camera/camera_VC9.vcproj)
- GtkRadiant/trunk/contrib/gtkgensurf/gtkgensurf.vcproj (modified) (1 prop)
- GtkRadiant/trunk/contrib/hydratoolz/hydratoolz.vcproj (modified) (1 prop)
- GtkRadiant/trunk/contrib/prtview/PrtView.vcproj (modified) (1 prop)
- GtkRadiant/trunk/contrib/ufoai/ufoai.vcproj (modified) (1 prop)
- GtkRadiant/trunk/gen.vcproj (modified) (1 prop)
- GtkRadiant/trunk/libs/cmdlib/cmdlib.vcproj (modified) (1 prop)
- GtkRadiant/trunk/libs/cmdlib/cmdlib_VC9.vcproj (copied) (copied from GtkRadiant/branches/timo/libs/cmdlib/cmdlib_VC9.vcproj)
- GtkRadiant/trunk/libs/ddslib/ddslib.vcproj (modified) (1 prop)
- GtkRadiant/trunk/libs/ddslib/ddslib_VC9.vcproj (copied) (copied from GtkRadiant/branches/timo/libs/ddslib/ddslib_VC9.vcproj)
- GtkRadiant/trunk/libs/l_net/l_net.vcproj (modified) (1 prop)
- GtkRadiant/trunk/libs/l_net/l_net_VC9.vcproj (copied) (copied from GtkRadiant/branches/timo/libs/l_net/l_net_VC9.vcproj)
- GtkRadiant/trunk/libs/mathlib/mathlib.vcproj (modified) (1 prop)
- GtkRadiant/trunk/libs/mathlib/mathlib_VC9.vcproj (copied) (copied from GtkRadiant/branches/timo/libs/mathlib/mathlib_VC9.vcproj)
- GtkRadiant/trunk/libs/md5lib/md5lib.vcproj (modified) (1 prop)
- GtkRadiant/trunk/libs/md5lib/md5lib_VC9.vcproj (copied) (copied from GtkRadiant/branches/timo/libs/md5lib/md5lib_VC9.vcproj)
- GtkRadiant/trunk/libs/picomodel/picomodel.vcproj (modified) (1 prop)
- GtkRadiant/trunk/libs/picomodel/picomodel_VC9.vcproj (copied) (copied from GtkRadiant/branches/timo/libs/picomodel/picomodel_VC9.vcproj)
- GtkRadiant/trunk/libs/splines/Splines.vcproj (modified) (1 prop)
- GtkRadiant/trunk/libs/splines/Splines_VC9.vcproj (copied) (copied from GtkRadiant/branches/timo/libs/splines/Splines_VC9.vcproj)
- GtkRadiant/trunk/libs/synapse/synapse.vcproj (modified) (1 prop)
- GtkRadiant/trunk/libs/synapse/synapse_VC9.vcproj (copied) (copied from GtkRadiant/branches/timo/libs/synapse/synapse_VC9.vcproj)
- GtkRadiant/trunk/plugins/eclassfgd/fgd.vcproj (modified) (1 prop)
- GtkRadiant/trunk/plugins/entity/entity.vcproj (modified) (1 prop)
- GtkRadiant/trunk/plugins/entity/entity_VC9.vcproj (copied) (copied from GtkRadiant/branches/timo/plugins/entity/entity_VC9.vcproj)
- GtkRadiant/trunk/plugins/image/image.vcproj (modified) (1 prop)
- GtkRadiant/trunk/plugins/image/image_VC9.vcproj (copied) (copied from GtkRadiant/branches/timo/plugins/image/image_VC9.vcproj)
- GtkRadiant/trunk/plugins/imagehl/imagehl.vcproj (modified) (1 prop)
- GtkRadiant/trunk/plugins/imagem8/imagem8.vcproj (modified) (1 prop)
- GtkRadiant/trunk/plugins/imagepng/imagepng.vcproj (modified) (1 prop)
- GtkRadiant/trunk/plugins/imagepng/imagepng_VC9.vcproj (copied) (copied from GtkRadiant/branches/timo/plugins/imagepng/imagepng_VC9.vcproj)
- GtkRadiant/trunk/plugins/imagewal/imagewal.vcproj (modified) (1 prop)
- GtkRadiant/trunk/plugins/map/map.vcproj (modified) (1 prop)
- GtkRadiant/trunk/plugins/map/map_VC9.vcproj (copied) (copied from GtkRadiant/branches/timo/plugins/map/map_VC9.vcproj)
- GtkRadiant/trunk/plugins/mapxml/mapxml.vcproj (modified) (1 prop)
- GtkRadiant/trunk/plugins/mapxml/mapxml_VC9.vcproj (copied) (copied from GtkRadiant/branches/timo/plugins/mapxml/mapxml_VC9.vcproj)
- GtkRadiant/trunk/plugins/model/model.vcproj (modified) (1 prop)
- GtkRadiant/trunk/plugins/model/model_VC9.vcproj (copied) (copied from GtkRadiant/branches/timo/plugins/model/model_VC9.vcproj)
- GtkRadiant/trunk/plugins/sample/sample.vcproj (modified) (1 prop)
- GtkRadiant/trunk/plugins/shaders/shaders.vcproj (modified) (1 prop)
- GtkRadiant/trunk/plugins/shaders/shaders_VC9.vcproj (copied) (copied from GtkRadiant/branches/timo/plugins/shaders/shaders_VC9.vcproj)
- GtkRadiant/trunk/plugins/spritemodel/spritemodel.vcproj (modified) (1 prop)
- GtkRadiant/trunk/plugins/surface/surface.vcproj (modified) (1 prop)
- GtkRadiant/trunk/plugins/surface/surface_VC9.vcproj (copied) (copied from GtkRadiant/branches/timo/plugins/surface/surface_VC9.vcproj)
- GtkRadiant/trunk/plugins/surface_heretic2/surface_heretic2.vcproj (modified) (1 prop)
- GtkRadiant/trunk/plugins/surface_quake2/surface_quake2.vcproj (modified) (1 prop)
- GtkRadiant/trunk/plugins/surface_ufoai/surface_ufoai.vcproj (modified) (1 prop)
- GtkRadiant/trunk/plugins/textool/TexTool.vcproj (modified) (1 prop)
- GtkRadiant/trunk/plugins/vfspak/vfspak.vcproj (modified) (1 prop)
- GtkRadiant/trunk/plugins/vfspk3/vfspk3.vcproj (modified) (1 prop)
- GtkRadiant/trunk/plugins/vfspk3/vfspk3_VC9.vcproj (copied) (copied from GtkRadiant/branches/timo/plugins/vfspk3/vfspk3_VC9.vcproj)
- GtkRadiant/trunk/plugins/vfswad/vfswad.vcproj (modified) (1 prop)
- GtkRadiant/trunk/radiant.sln (modified) (2 diffs, 1 prop)
- GtkRadiant/trunk/radiant/gtkmisc.cpp (modified) (2 diffs)
- GtkRadiant/trunk/radiant/mainframe.cpp (modified) (4 diffs)
- GtkRadiant/trunk/radiant/mainframe.h (modified) (2 diffs)
- GtkRadiant/trunk/radiant/missing.cpp (modified) (2 diffs)
- GtkRadiant/trunk/radiant/preferences.cpp (modified) (3 diffs)
- GtkRadiant/trunk/radiant/radiant.vcproj (modified) (1 prop)
- GtkRadiant/trunk/radiant/radiant_VC9.vcproj (copied) (copied from GtkRadiant/branches/timo/radiant/radiant_VC9.vcproj)
- GtkRadiant/trunk/radiant/select.cpp (modified) (1 diff)
- GtkRadiant/trunk/radiant/select.h (modified) (1 diff)
- GtkRadiant/trunk/radiant_VC9.sln (copied) (copied from GtkRadiant/branches/timo/radiant_VC9.sln)
- GtkRadiant/trunk/tools/quake2/q2map/q2map.vcproj (modified) (1 prop)
- GtkRadiant/trunk/tools/quake2/qdata/qdata3.vcproj (modified) (1 prop)
- GtkRadiant/trunk/tools/quake2/qdata_heretic2/qdata3_heretic2.vcproj (modified) (1 prop)
- GtkRadiant/trunk/tools/quake3/q3data/q3data.vcproj (modified) (1 prop)
- GtkRadiant/trunk/tools/quake3/q3map2/bsp.c (modified) (2 diffs)
- GtkRadiant/trunk/tools/quake3/q3map2/bspfile_abstract.c (modified) (1 diff)
- GtkRadiant/trunk/tools/quake3/q3map2/bspfile_ibsp.c (modified) (4 diffs)
- GtkRadiant/trunk/tools/quake3/q3map2/game_quake3.h (modified) (2 diffs)
- GtkRadiant/trunk/tools/quake3/q3map2/light.c (modified) (1 diff)
- GtkRadiant/trunk/tools/quake3/q3map2/q3map2.h (modified) (4 diffs)
- GtkRadiant/trunk/tools/quake3/q3map2/q3map2.vcproj (modified) (7 diffs, 1 prop)
- GtkRadiant/trunk/tools/quake3/q3map2/q3map2_VC9.vcproj (copied) (copied from GtkRadiant/branches/timo/tools/quake3/q3map2/q3map2_VC9.vcproj)
- GtkRadiant/trunk/tools/quake3/q3map2/shaders.c (modified) (2 diffs)
- GtkRadiant/trunk/tools/quake3/q3map2/writebsp.c (modified) (1 diff)
- GtkRadiant/trunk/win32_install.py (deleted)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
GtkRadiant/trunk/config.py
r301 r319 258 258 ret = os.system( cmd ) 259 259 if ( ret != 0 ): 260 raise 'checkout or update failed'260 raise Exception( 'checkout or update failed' ) 261 261 262 262 … … 268 268 269 269 def Setup( self ): 270 for platform in self.setup_platforms:271 270 if ( platform == 'local' ): 272 271 # special case, fetch external paks under the local install directory 273 272 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' ) 274 330 275 331 # 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 10 10 {0B522841-BDCC-493A-BA5C-604AE2CD5756} = {0B522841-BDCC-493A-BA5C-604AE2CD5756} 11 11 {3886C418-A41E-4AFF-BBD1-8E1E508920C9} = {3886C418-A41E-4AFF-BBD1-8E1E508920C9} 12 {444E6FDA-83BD-49F1-89A4-7CF716F742A8} = {444E6FDA-83BD-49F1-89A4-7CF716F742A8} 12 13 EndProjectSection 13 14 EndProject … … 73 74 ProjectSection(ProjectDependencies) = postProject 74 75 {DC2F2B6B-2596-4B90-88CE-2FDE4C2FFB01} = {DC2F2B6B-2596-4B90-88CE-2FDE4C2FFB01} 76 {444E6FDA-83BD-49F1-89A4-7CF716F742A8} = {444E6FDA-83BD-49F1-89A4-7CF716F742A8} 75 77 EndProjectSection 76 78 EndProject GtkRadiant/trunk/radiant/gtkmisc.cpp
r302 r319 1475 1475 gtk_file_selection_hide_fileop_buttons (GTK_FILE_SELECTION (file_sel)); 1476 1476 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 } 1479 1480 1480 1481 gtk_widget_hide (GTK_FILE_SELECTION (file_sel)->file_list->parent); … … 1492 1493 gtk_main_iteration (); 1493 1494 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 ); 1498 1499 1499 1500 return filename; GtkRadiant/trunk/radiant/mainframe.cpp
r301 r319 123 123 {"CSGSubtract", 'U', 0x01, ID_SELECTION_CSGSUBTRACT, "menu_selection_csgsubstract"}, 124 124 // {"ViewGroups", 'G', 0x00, ID_VIEW_GROUPS, "menu_view_groups"}, (temporary disabled) 125 {"SelectFuncGroup", 'G', 0x00, ID_SELECT_FUNC_GROUP, "menu_select_func_group"}, 125 126 {"HideSelected", 'H', 0x00, ID_VIEW_HIDESHOW_HIDESELECTED, "menu_view_hideshow_hideselected"}, 126 127 {"ShowHidden", 'H', 0x01, ID_VIEW_HIDESHOW_SHOWHIDDEN, "menu_view_hideshow_showhidden"}, … … 425 426 case ID_VIEW_ENTITY: g_pParentWnd->OnViewEntity (); break; 426 427 case ID_VIEW_GROUPS: g_pParentWnd->OnViewGroups (); break; 428 case ID_SELECT_FUNC_GROUP: g_pParentWnd->OnSelectFuncGroup(); break; 427 429 case ID_TOGGLEVIEW: g_pParentWnd->OnToggleview (); break; 428 430 case ID_TOGGLEVIEW_YZ: g_pParentWnd->OnToggleviewYz (); break; … … 1201 1203 create_menu_item_with_mnemonic (menu_in_menu, _("Select _Inside"), 1202 1204 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); 1203 1206 #ifndef QUAKE3 1204 1207 create_menu_item_with_mnemonic (menu_in_menu, _("Nudge Left"), … … 7075 7078 } 7076 7079 7077 void MainFrame::OnCameraForward(bool keydown) 7080 void 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 7097 void MainFrame::OnCameraForward(bool keydown) 7078 7098 { 7079 7099 if (g_PrefsDlg.m_bCamDiscrete && (m_pCamWnd && !m_pCamWnd->m_bFreeMove) ) GtkRadiant/trunk/radiant/mainframe.h
r280 r319 408 408 #define ID_COLORS_MAJOR_ALT 40231 409 409 410 #define ID_SELECT_FUNC_GROUP 40233 411 410 412 // those must have their own ID chunk ID_GRID_025 <= ID_GRID <= ID_GRID_256 411 413 #define ID_GRID_025 40300 … … 892 894 void OnFilterClusterportals(); 893 895 void OnFilterLightgrid(); 896 void OnSelectFuncGroup(); 894 897 895 898 private: GtkRadiant/trunk/radiant/missing.cpp
r302 r319 209 209 210 210 bool radCreateDirectory( const char *directory ) { 211 return CreateDirectory( directory, NULL ) != false;211 return ( CreateDirectory( directory, NULL ) != false ); 212 212 } 213 213 214 214 bool radCopyFile( const char *lpExistingFileName, const char *lpNewFileName ) { 215 return CopyFile( lpExistingFileName, lpNewFileName, FALSE ) != false;215 return ( CopyFile( lpExistingFileName, lpNewFileName, FALSE ) != false ); 216 216 } 217 217 … … 240 240 case PATH_DIRECTORY: { 241 241 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 } 243 246 } 244 247 bool ret; GtkRadiant/trunk/radiant/preferences.cpp
r301 r319 3230 3230 3231 3231 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 ); 3233 3233 3234 3234 i->UpdateData( TRUE ); … … 3237 3237 i->m_strEngine = dir; 3238 3238 i->UpdateData( FALSE ); 3239 free( dir );3239 g_free( dir ); 3240 3240 } 3241 3241 } … … 3371 3371 3372 3372 FILE *fg = fopen( gameFilePath.GetBuffer(), "w" ); 3373 if ( fg == NULL ) {3373 if ( fg == NULL || ferror( fg ) ) { 3374 3374 Error( "Failed to open %s for writing\n", gameFilePath.GetBuffer() ); 3375 3375 } GtkRadiant/trunk/radiant/radiant.vcproj
- Property svn:eol-style set to native
GtkRadiant/trunk/radiant/select.cpp
r301 r319 1372 1372 Sys_UpdateWindows (W_ALL); 1373 1373 } 1374 1375 void 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 1374 1398 1375 1399 void Select_Ungroup(void) GtkRadiant/trunk/radiant/select.h
r183 r319 66 66 void Select_FitTexture(int nHeight = 1, int nWidth = 1); 67 67 68 void Select_SelectGroup(entity_t* group); 69 68 70 // absolute texture coordinates 69 71 // 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 46 46 47 47 48 /* 49 ProcessAdvertisements() 50 copies advertisement info into the BSP structures 51 */ 52 53 static 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 } 48 118 49 119 /* … … 846 916 SetLightStyles(); 847 917 918 /* process in game advertisements */ 919 ProcessAdvertisements(); 920 848 921 /* finish and write bsp */ 849 922 EndBSPFile(); GtkRadiant/trunk/tools/quake3/q3map2/bspfile_abstract.c
r302 r319 240 240 bspFogs[ i ].brushNum = LittleLong( bspFogs[ i ].brushNum ); 241 241 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 ]; 242 260 } 243 261 } GtkRadiant/trunk/tools/quake3/q3map2/bspfile_ibsp.c
r302 r319 65 65 #define LUMP_LIGHTGRID 15 66 66 #define LUMP_VISIBILITY 16 67 #define HEADER_LUMPS 17 67 #define LUMP_ADVERTISEMENTS 17 68 #define HEADER_LUMPS 18 68 69 69 70 … … 454 455 } 455 456 456 457 458 457 /* 459 458 LoadIBSPFile() … … 514 513 515 514 CopyLightGridLumps( header ); 516 515 516 /* advertisements */ 517 numBSPAds = CopyLump( (bspHeader_t*) header, LUMP_ADVERTISEMENTS, bspAds, sizeof( bspAdvertisement_t ) ); 518 517 519 /* free the file buffer */ 518 520 free( header ); … … 572 574 AddLump( file, (bspHeader_t*) header, LUMP_FOGS, bspFogs, numBSPFogs * sizeof( bspFog_t ) ); 573 575 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 575 580 /* emit bsp size */ 576 581 size = ftell( file ); GtkRadiant/trunk/tools/quake3/q3map2/game_quake3.h
r302 r319 115 115 1.0f, /* lightmap compensate */ 116 116 "IBSP", /* bsp file prefix */ 117 4 6, /* bsp file version */117 47, /* bsp file version */ 118 118 qfalse, /* cod-style lump len/ofs order */ 119 119 LoadIBSPFile, /* bsp load function */ … … 180 180 { "dust", 0, 0, Q_SURF_DUST, 0, 0, 0 }, 181 181 182 183 182 /* null */ 184 183 { NULL, 0, 0, 0, 0, 0, 0 } GtkRadiant/trunk/tools/quake3/q3map2/light.c
r302 r319 340 340 Error( "Invalid lightstyle (%d) on entity %d", light->style, i ); 341 341 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 346 346 /* set light intensity */ 347 347 intensity = FloatForKey( e, "_light" ); GtkRadiant/trunk/tools/quake3/q3map2/q3map2.h
r302 r319 170 170 #define C_SKIP 0x00008000 /* like hint, but skips this face (doesn't split bsp) */ 171 171 #define C_NOMARKS 0x00010000 /* no decals */ 172 173 172 #define C_DETAIL 0x08000000 /* THIS MUST BE THE SAME AS IN RADIANT! */ 174 173 … … 324 323 #define MAX_MAP_DRAW_INDEXES 0x80000 325 324 325 #define MAX_MAP_ADVERTISEMENTS 30 326 326 327 327 /* key / value pair sizes in the entities lump */ … … 502 502 bspDrawSurface_t; 503 503 504 505 /* advertisements */ 506 typedef struct { 507 int cellId; 508 vec3_t normal; 509 vec3_t rect[4]; 510 char model[ MAX_QPATH ]; 511 } bspAdvertisement_t; 504 512
