Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 23, 2009, 9:57:52 PM (16 years ago)
Author:
landauf
Message:

merged gametypes branch back to trunk

Location:
code/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/trunk

  • code/trunk/src/orxonox/objects/quest/QuestEffectBeacon.cc

    r2911 r3033  
    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.