mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-28 07:45:40 +00:00
Merge pull request #2146 from Azaezel/specializationShenanigans
changes find, swap, for_each, and delete_pointer from global to t3d namespace
This commit is contained in:
commit
037d089c4d
20 changed files with 70 additions and 69 deletions
|
|
@ -183,7 +183,7 @@ bool SceneContainer::removeObject(SceneObject* obj)
|
|||
// Remove water and physical zone types from the special vector.
|
||||
if ( obj->getTypeMask() & ( WaterObjectType | PhysicalZoneObjectType ) )
|
||||
{
|
||||
Vector<SceneObject*>::iterator iter = find( mWaterAndZones.begin(), mWaterAndZones.end(), obj );
|
||||
Vector<SceneObject*>::iterator iter = T3D::find( mWaterAndZones.begin(), mWaterAndZones.end(), obj );
|
||||
if( iter != mTerrains.end() )
|
||||
mWaterAndZones.erase_fast(iter);
|
||||
}
|
||||
|
|
@ -191,7 +191,7 @@ bool SceneContainer::removeObject(SceneObject* obj)
|
|||
// Remove terrain objects from special vector.
|
||||
if( obj->getTypeMask() & TerrainObjectType )
|
||||
{
|
||||
Vector< SceneObject* >::iterator iter = find( mTerrains.begin(), mTerrains.end(), obj );
|
||||
Vector< SceneObject* >::iterator iter = T3D::find( mTerrains.begin(), mTerrains.end(), obj );
|
||||
if( iter != mTerrains.end() )
|
||||
mTerrains.erase_fast(iter);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue