Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 2904


Ignore:
Timestamp:
Apr 6, 2009, 4:50:31 PM (16 years ago)
Author:
scheusso
Message:

reverted changes from 2902

Location:
code/trunk/src/orxonox/objects
Files:
3 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/objects/gametypes/TeamDeathmatch.cc

    r2902 r2904  
    189189        return false;
    190190    }
    191 
    192     int TeamDeathmatch::getTeam(PlayerInfo* player)
    193     {
    194         std::map<PlayerInfo*, int>::const_iterator it_player = this->teamnumbers_.find(player);
    195         if (it_player != this->teamnumbers_.end())
    196             return it_player->second;
    197         else
    198             return -1;
    199     }
    200191}
  • code/trunk/src/orxonox/objects/gametypes/TeamDeathmatch.h

    r2902 r2904  
    5858            virtual SpawnPoint* getBestSpawnPoint(PlayerInfo* player) const;
    5959            bool pawnsAreInTheSameTeam(Pawn* pawn1, Pawn* pawn2);
    60             int getTeam(PlayerInfo* player);
    6160
    6261            std::map<PlayerInfo*, int> teamnumbers_;
  • code/trunk/src/orxonox/objects/worldentities/pawns/Pawn.cc

    r2902 r2904  
    198198    void Pawn::death()
    199199    {
    200         this->setHealth(1);
    201200        if (this->getGametype() && this->getGametype()->allowPawnDeath(this, this->lastHitOriginator_))
    202201        {
     
    215214                this->deatheffect();
    216215        }
     216        else
     217            this->setHealth(1);
    217218    }
    218219
Note: See TracChangeset for help on using the changeset viewer.