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/WorldSound.cc

    r6071 r6100  
    8989        }
    9090    }
     91
     92    void WorldSound::changedActivity()
     93    {
     94        SUPER(WorldSound, changedActivity);
     95        if (this->isActive())
     96            this->play();
     97        else
     98            this->stop();
     99    }
    91100}
Note: See TracChangeset for help on using the changeset viewer.