From: Christoph Sommer Date: Sat, 29 Apr 2006 20:00:57 +0000 (+0000) Subject: Rolled back musical coin code X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=826b5de5c651af03c901bb1fff053b457cdd09dd;p=supertux.git Rolled back musical coin code SVN-Revision: 3463 --- diff --git a/src/object/coin.cpp b/src/object/coin.cpp index 36b035abb..7e263aa04 100644 --- a/src/object/coin.cpp +++ b/src/object/coin.cpp @@ -71,7 +71,9 @@ Coin::draw(DrawingContext& context) void Coin::collect() { - static Timer sound_timer; /**< time since last Coin was collected */ + // TODO: commented out musical code. Maybe fork this for a special "MusicalCoin" object? + /* + static Timer sound_timer; static int pitch_one = 128; static float last_pitch = 1; float pitch = 1; @@ -137,8 +139,8 @@ Coin::collect() soundSource->set_position(get_pos()); soundSource->set_pitch(pitch); sound_manager->play_and_delete(soundSource); - - Sector::current()->player->get_status()->add_coins(1, false); +*/ + Sector::current()->player->get_status()->add_coins(1); Sector::current()->add_object(new BouncyCoin(get_pos())); Sector::current()->get_level()->stats.coins++; remove_me();