Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 7, 2011, 12:55:24 PM (13 years ago)
Author:
FelixSchulthess
Message:

blah

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/portals/src/modules/portals/PortalLink.cc

    r8199 r8200  
    77    CreateFactory(PortalLink);
    88   
    9     PortalLink::PortalLink(BaseObject* creator) : BaseObject(creator), fromID_(0), toID_(0), from_(0), to_(0), activationRadius_(20)
     9    PortalLink::PortalLink(BaseObject* creator) : EventListener(creator), fromID_(0), toID_(0), from_(0), to_(0), activationRadius_(20)
    1010    {
    1111        RegisterObject(PortalLink);
     
    3232    void PortalLink::tick(float dt)
    3333    {
    34         SUPER(PortalLink, tick)
     34        SUPER(PortalLink, tick, dt);
    3535    }
    3636   
    3737    void PortalLink::processEvent(Event& event)
    3838    {
    39         SUPER(PortalLink, processEvent);
     39        EventListener::processEvent(event);
    4040        if(!event.activate_)
    4141        {
     
    5353            return;
    5454        }
    55         to_->jumpOut(entity);
     55        to_->jumpOut(eventEntity);
    5656    }
    5757
Note: See TracChangeset for help on using the changeset viewer.