From: Tobias Markus Date: Fri, 24 Jan 2014 00:07:59 +0000 (+0100) Subject: Lower savebell sound for bigger bell X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=09e419eb998e216c01115d001e68aa556d501d2e;p=supertux.git Lower savebell sound for bigger bell --- diff --git a/data/sounds/savebell_low.wav b/data/sounds/savebell_low.wav new file mode 100644 index 000000000..d3adcadea Binary files /dev/null and b/data/sounds/savebell_low.wav differ diff --git a/src/object/firefly.cpp b/src/object/firefly.cpp index 4f1e2a3a8..81bb8f785 100644 --- a/src/object/firefly.cpp +++ b/src/object/firefly.cpp @@ -48,7 +48,12 @@ Firefly::Firefly(const Reader& lisp) : reactivate(); //Load sound - sound_manager->preload("sounds/savebell2.wav"); + if( sprite_name.find("vbell", 0) == std::string::npos ) { + sound_manager->preload("sounds/savebell_low.wav"); + } + else { + sound_manager->preload("sounds/savebell2.wav"); + } } void @@ -87,7 +92,12 @@ Firefly::collision(GameObject& other, const CollisionHit& ) Sector::current()->add_object(new SpriteParticle("images/objects/particles/reset.sprite", "default", ppos, ANCHOR_MIDDLE, pspeed, paccel, LAYER_OBJECTS-1)); } - sound_manager->play("sounds/savebell2.wav"); + if( sprite_name.find("vbell", 0) == std::string::npos ) { + sound_manager->play("sounds/savebell2.wav"); + } + else { + sound_manager->play("sounds/savebell_low.wav"); + } sprite->set_action("ringing"); GameSession::current()->set_reset_point(Sector::current()->get_name(),