mirror of
https://github.com/id-Software/DOOM-3-BFG.git
synced 2025-03-14 06:34:10 +00:00
Give generated envprobes proper names
This commit is contained in:
parent
72a737d992
commit
85993e28ad
1 changed files with 5 additions and 1 deletions
|
@ -1295,7 +1295,7 @@ void idGameLocal::PopulateEnvironmentProbes()
|
|||
|
||||
int numAreas = gameRenderWorld->NumAreas();
|
||||
|
||||
for( int i = 0 ; i < numAreas ; i++ )
|
||||
for( int i = 0; i < numAreas; i++ )
|
||||
{
|
||||
idBounds areaBounds = gameRenderWorld->AreaBounds( i );
|
||||
|
||||
|
@ -1312,6 +1312,10 @@ void idGameLocal::PopulateEnvironmentProbes()
|
|||
args.Set( "classname", "env_probe" );
|
||||
args.Set( "origin", point.ToString() );
|
||||
|
||||
idStr name; //= gameEdit->GetUniqueEntityName( "env_probe_generated" );
|
||||
name.Format( "env_probe_generated%i", i );
|
||||
args.Set( "name", name );
|
||||
|
||||
gameLocal.SpawnEntityDef( args, &ent );
|
||||
if( !ent )
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue