Removed the optional code for the swatter song
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9348 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
926df46a15
commit
230ada44c2
@ -38,18 +38,11 @@
|
||||
#define SWAT_ANGLE_OFFSET (90.0f + 15.0f)
|
||||
#define SWATTER_ANIMATION_SPEED 100.0f
|
||||
|
||||
//#define TEMP_TEST_SWATTER_SONG // uncomment this line to test
|
||||
|
||||
Swatter::Swatter(Attachment *attachment, Kart *kart)
|
||||
: AttachmentPlugin(attachment, kart)
|
||||
{
|
||||
m_animation_phase = SWATTER_AIMING;
|
||||
m_target = NULL;
|
||||
|
||||
#ifdef TEMP_TEST_SWATTER_SONG
|
||||
sfx_manager->quickSound("swatter");
|
||||
music_manager->setMasterMusicVolume(0.0);
|
||||
#endif
|
||||
|
||||
// Setup the node
|
||||
scene::IAnimatedMeshSceneNode* node = m_attachment->getNode();
|
||||
@ -60,9 +53,6 @@ Swatter::Swatter(Attachment *attachment, Kart *kart)
|
||||
//-----------------------------------------------------------------------------
|
||||
Swatter::~Swatter()
|
||||
{
|
||||
#ifdef TEMP_TEST_SWATTER_SONG
|
||||
music_manager->setMasterMusicVolume(1.0);
|
||||
#endif
|
||||
} // ~Swatter
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user