fixed save-region crash

git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@76 8a3a26a2-13c4-0310-b231-cf6edde360e5
This commit is contained in:
spog 2006-06-03 12:52:35 +00:00
parent 70da7cd260
commit 3fe01800e2
2 changed files with 7 additions and 2 deletions

View File

@ -1,6 +1,11 @@
This is the changelog for developers, != changelog for the end user This is the changelog for developers, != changelog for the end user
that we distribute with the binaries. (see changelog) that we distribute with the binaries. (see changelog)
03/06/2006
SPoG
- Changed doom3 entity creation to add model key for brush-entities.
- Fixed crash in Save Region.
29/05/2006 29/05/2006
SPoG SPoG
- Changed default doom3 light_radius to be taken from the entity-definition. - Changed default doom3 light_radius to be taken from the entity-definition.

View File

@ -1408,7 +1408,7 @@ void AddRegionBrushes (void)
for(i=0; i<6; i++) for(i=0; i<6; i++)
{ {
region_sides[i] = &GlobalBrushCreator().createBrush(); region_sides[i] = &GlobalBrushCreator().createBrush();
Node_getTraversable(Map_FindOrInsertWorldspawn(g_map))->insert(*region_sides[i]); Node_getTraversable(Map_FindOrInsertWorldspawn(g_map))->insert(NodeSmartReference(*region_sides[i]));
} }
region_startpoint = &GlobalEntityCreator().createEntity(GlobalEntityClassManager().findOrInsert("info_player_start", false)); region_startpoint = &GlobalEntityCreator().createEntity(GlobalEntityClassManager().findOrInsert("info_player_start", false));
@ -1416,7 +1416,7 @@ void AddRegionBrushes (void)
ConstructRegionBrushes(region_sides, region_mins, region_maxs); ConstructRegionBrushes(region_sides, region_mins, region_maxs);
ConstructRegionStartpoint(region_startpoint, region_mins, region_maxs); ConstructRegionStartpoint(region_startpoint, region_mins, region_maxs);
Node_getTraversable(GlobalSceneGraph().root())->insert(*region_startpoint); Node_getTraversable(GlobalSceneGraph().root())->insert(NodeSmartReference(*region_startpoint));
} }
void RemoveRegionBrushes (void) void RemoveRegionBrushes (void)