| 1993 | } |
| 1994 | |
| 1995 | void afxMagicMissile::updateSound() |
| 1996 | { |
| 1997 | if (!mDataBlock->isProjectileSoundValid()) |
| 1998 | return; |
| 1999 | |
| 2000 | if ( mSound ) |
| 2001 | { |
| 2002 | if ( !mSound->isPlaying() ) |
| 2003 | mSound->play(); |
| 2004 | |
| 2005 | mSound->setVelocity( getVelocity() ); |
| 2006 | mSound->setTransform( getRenderTransform() ); |
| 2007 | } |
| 2008 | } |
| 2009 | |
| 2010 | //~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~~// |
| 2011 | // public: |
nothing calls this directly
no test coverage detected