Changeset 2506 for code/branches/presentation/src/orxonox/objects
- Timestamp:
- Dec 17, 2008, 6:18:41 PM (16 years ago)
- Location:
- code/branches/presentation/src/orxonox/objects
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation/src/orxonox/objects/controllers/ArtificialController.cc
r2493 r2506 88 88 { 89 89 // if (it->getTeamNr() != this->getTeamNr()) 90 if ( (ControllableEntity*)(*it) != this->getControllableEntity())90 if (static_cast<ControllableEntity*>(*it) != this->getControllableEntity()) 91 91 { 92 92 float speed = this->getControllableEntity()->getVelocity().length(); -
code/branches/presentation/src/orxonox/objects/worldentities/pawns/Pawn.h
r2501 r2506 87 87 88 88 inline const WorldEntity* getWorldEntity() const 89 { return (WorldEntity*)this; }89 { return const_cast<Pawn*>(this); } 90 90 91 91 inline void setSpawnParticleSource(const std::string& source)
Note: See TracChangeset
for help on using the changeset viewer.