[Orxonox-commit 4942] r9611 - code/branches/core6/src/orxonox/interfaces
landauf at orxonox.net
landauf at orxonox.net
Mon Apr 1 14:34:27 CEST 2013
Author: landauf
Date: 2013-04-01 14:34:27 +0200 (Mon, 01 Apr 2013)
New Revision: 9611
Modified:
code/branches/core6/src/orxonox/interfaces/RadarViewable.cc
code/branches/core6/src/orxonox/interfaces/RadarViewable.h
Log:
no need to store the creator of a RadarViewable
Modified: code/branches/core6/src/orxonox/interfaces/RadarViewable.cc
===================================================================
--- code/branches/core6/src/orxonox/interfaces/RadarViewable.cc 2013-04-01 08:57:34 UTC (rev 9610)
+++ code/branches/core6/src/orxonox/interfaces/RadarViewable.cc 2013-04-01 12:34:27 UTC (rev 9611)
@@ -44,7 +44,6 @@
: isHumanShip_(false)
, bVisibility_(true)
, bInitialized_(false)
- , creator_(creator)
, wePtr_(wePtr)
, radarObjectCamouflage_(0.0f)
, radarObjectShape_(Dot)
@@ -56,7 +55,7 @@
this->uniqueId_=getUniqueNumberString();
if( GameMode::showsGraphics() )
{
- this->radar_ = this->creator_->getScene()->getRadar();
+ this->radar_ = creator->getScene()->getRadar();
this->radar_->addRadarObject(this);
}
this->bInitialized_ = true;
Modified: code/branches/core6/src/orxonox/interfaces/RadarViewable.h
===================================================================
--- code/branches/core6/src/orxonox/interfaces/RadarViewable.h 2013-04-01 08:57:34 UTC (rev 9610)
+++ code/branches/core6/src/orxonox/interfaces/RadarViewable.h 2013-04-01 12:34:27 UTC (rev 9611)
@@ -152,7 +152,6 @@
bool bInitialized_;
//Map
std::string uniqueId_;
- BaseObject* creator_;
//Radar
More information about the Orxonox-commit
mailing list