Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 19, 2009, 9:01:16 PM (14 years ago)
Author:
rgrieder
Message:

Added a sound for the engine (forward active mode) by overloading changedActivity in WorldSound.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/sound3/src/orxonox/sound/AmbientSound.cc

    r6071 r6100  
    125125    void AmbientSound::changedActivity()
    126126    {
    127         COUT(3) << "Sound: " << this->getSource() << ": ChangedActivity: " << this->isActive() << std::endl;
    128         this->BaseObject::changedActivity();
     127        SUPER(AmbientSound, changedActivity);
    129128        if (this->isActive())
    130         {
    131129            this->play();
    132         }
    133130        else
    134         {
    135131            this->stop();
    136         }
    137132    }
    138133}
Note: See TracChangeset for help on using the changeset viewer.