Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 18, 2009, 6:00:13 PM (15 years ago)
Author:
Aurelian
Message:

Respawning changed, not possible anymore, not completely working. Movable Entity is now able to cause damage.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/gametypes/src/orxonox/objects/quest/QuestEffectBeacon.cc

    r2662 r2986  
    4141
    4242#include "orxonox/objects/infos/PlayerInfo.h"
    43 #include "orxonox/objects/worldentities/ControllableEntity.h"
     43#include "orxonox/objects/worldentities/pawns/Pawn.h"
    4444#include "orxonox/objects/worldentities/triggers/PlayerTrigger.h"
    4545#include "QuestEffect.h"
     
    120120
    121121        //! Extracting the ControllableEntity form the PlayerTrigger.
    122         ControllableEntity* entity = trigger->getTriggeringPlayer();
    123 
    124         if(entity == NULL)
    125         {
    126             COUT(2) << "The QuestEffectBeacon was triggered by an entity other than a ControllableEntity." << std::endl;
     122        Pawn* pawn = trigger->getTriggeringPlayer();
     123
     124        if(pawn == NULL)
     125        {
     126            COUT(2) << "The QuestEffectBeacon was triggered by an entity other than a Pawn." << std::endl;
    127127            return false;
    128128        }
    129129       
    130130        //! Extract the PlayerInfo from the ControllableEntity.
    131         PlayerInfo* player = entity->getPlayer();
     131        PlayerInfo* player = pawn->getPlayer();
    132132       
    133133        if(player == NULL)
Note: See TracChangeset for help on using the changeset viewer.