Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 29, 2010, 8:41:19 PM (14 years ago)
Author:
dafrick
Message:

Tested and cleaned all levels (except for the ones that someone is working on at the moment).
Two levels had old Pickups in them, they have been updated to work properly now.
All levels except one are working. The one that isn't is the presentationHS09b level, which crashes due to LOD.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation3/src/modules/pickup/Pickup.cc

    r6709 r7007  
    146146    void Pickup::setActivationType(const std::string& type)
    147147    {
    148         if(type == activationTypeImmediate_s)
     148        if(Pickup::activationTypeImmediate_s.compare(type))
    149149        {
    150150            this->activationType_ = pickupActivationType::immediate;
    151151        }
    152         else if(type == activationTypeOnUse_s)
     152        else if(Pickup::activationTypeOnUse_s.compare(type))
    153153        {
    154154            this->activationType_ = pickupActivationType::onUse;
     
    168168    void Pickup::setDurationType(const std::string& type)
    169169    {
    170         if(type == durationTypeOnce_s)
     170        if(Pickup::durationTypeOnce_s.compare(type) == 0)
    171171        {
    172172            this->durationType_ = pickupDurationType::once;
    173173        }
    174         else if(type == durationTypeContinuous_s)
     174        else if(Pickup::durationTypeContinuous_s.compare(type) == 0)
    175175        {
    176176            this->durationType_ = pickupDurationType::continuous;
Note: See TracChangeset for help on using the changeset viewer.