Changeset 6356 for code/branches/presentation2/src/orxonox/worldentities
- Timestamp:
- Dec 15, 2009, 11:04:39 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2/src/orxonox/worldentities/pawns/Pawn.cc
r6295 r6356 168 168 void Pawn::hit(Pawn* originator, const Vector3& force, float damage) 169 169 { 170 if (this->getGametype() && this->getGametype()->allowPawnHit(this, originator) )170 if (this->getGametype() && this->getGametype()->allowPawnHit(this, originator) && (!this->getController() || !this->getController()->getGodMode()) ) 171 171 { 172 172 this->damage(damage, originator); … … 179 179 void Pawn::hit(Pawn* originator, btManifoldPoint& contactpoint, float damage) 180 180 { 181 if (this->getGametype() && this->getGametype()->allowPawnHit(this, originator) )181 if (this->getGametype() && this->getGametype()->allowPawnHit(this, originator) && (!this->getController() || !this->getController()->getGodMode()) ) 182 182 { 183 183 this->damage(damage, originator);
Note: See TracChangeset
for help on using the changeset viewer.