Give generated envprobes proper names

This commit is contained in:
Robert Beckebans 2021-05-20 08:08:35 +02:00
parent 72a737d992
commit 85993e28ad

View file

@ -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 )
{