Remove probably unnecessary subentity owner refresh, as nothing appears to change it, and doing it every frame gets expensive

git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@5036 127b21dd-08f5-0310-b4b7-95ae10353056
This commit is contained in:
Chris Morris 2012-06-27 22:03:38 +00:00
parent 3f9eb935b1
commit 9447db9ea8

View File

@ -5184,7 +5184,9 @@ ShipEntity* doOctreesCollide(ShipEntity* prime, ShipEntity* other)
ShipEntity *subEntity = nil;
foreach (subEntity, [self subEntities])
{
[subEntity setOwner:self]; // refresh ownership
// already set on subentity creation and not going to have changed, isn't it?
// anyway, didn't appear to break anything when I took it out - CIM
// [subEntity setOwner:self]; // refresh ownership
[subEntity drawSubEntity:immediate :translucent];
}
}