mirror of
https://github.com/TTimo/GtkRadiant.git
synced 2024-11-10 07:11:54 +00:00
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:
parent
70da7cd260
commit
3fe01800e2
2 changed files with 7 additions and 2 deletions
5
CHANGES
5
CHANGES
|
@ -1,6 +1,11 @@
|
|||
This is the changelog for developers, != changelog for the end user
|
||||
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
|
||||
SPoG
|
||||
- Changed default doom3 light_radius to be taken from the entity-definition.
|
||||
|
|
|
@ -1408,7 +1408,7 @@ void AddRegionBrushes (void)
|
|||
for(i=0; i<6; i++)
|
||||
{
|
||||
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));
|
||||
|
@ -1416,7 +1416,7 @@ void AddRegionBrushes (void)
|
|||
ConstructRegionBrushes(region_sides, 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)
|
||||
|
|
Loading…
Reference in a new issue