[Orxonox-commit 2299] r7014 - code/branches/presentation3/src/modules/overlays/hud
scheusso at orxonox.net
scheusso at orxonox.net
Sun May 30 14:50:20 CEST 2010
Author: scheusso
Date: 2010-05-30 14:50:19 +0200 (Sun, 30 May 2010)
New Revision: 7014
Modified:
code/branches/presentation3/src/modules/overlays/hud/HUDNavigation.cc
Log:
small fix in hudnavigation (making sure we don't remove the players spaceship (which is not in the list))
Modified: code/branches/presentation3/src/modules/overlays/hud/HUDNavigation.cc
===================================================================
--- code/branches/presentation3/src/modules/overlays/hud/HUDNavigation.cc 2010-05-30 12:10:13 UTC (rev 7013)
+++ code/branches/presentation3/src/modules/overlays/hud/HUDNavigation.cc 2010-05-30 12:50:19 UTC (rev 7014)
@@ -342,6 +342,8 @@
void HUDNavigation::removeObject ( RadarViewable* viewable )
{
+ if ( viewable == dynamic_cast<RadarViewable*> ( this->getOwner() ) )
+ return;
ObjectMap::iterator it = activeObjectList_.find ( viewable );
More information about the Orxonox-commit
mailing list