[Orxonox-commit 2268] r6984 - code/branches/presentation3/src/modules/overlays/hud
scheusso at orxonox.net
scheusso at orxonox.net
Thu May 27 19:11:36 CEST 2010
Author: scheusso
Date: 2010-05-27 19:11:36 +0200 (Thu, 27 May 2010)
New Revision: 6984
Modified:
code/branches/presentation3/src/modules/overlays/hud/HUDRadar.cc
Log:
fix in hudradar which caused sigabrts when using a gametype
Modified: code/branches/presentation3/src/modules/overlays/hud/HUDRadar.cc
===================================================================
--- code/branches/presentation3/src/modules/overlays/hud/HUDRadar.cc 2010-05-27 17:09:48 UTC (rev 6983)
+++ code/branches/presentation3/src/modules/overlays/hud/HUDRadar.cc 2010-05-27 17:11:36 UTC (rev 6984)
@@ -123,6 +123,8 @@
void HUDRadar::objectChanged( RadarViewable* rv )
{
+ if (rv == dynamic_cast<RadarViewable*>(this->owner_))
+ return;
assert( this->radarObjects_.find(rv) != this->radarObjects_.end() );
Ogre::PanelOverlayElement* panel = this->radarObjects_[rv];
panel->setMaterialName(TextureGenerator::getMaterialName(
More information about the Orxonox-commit
mailing list