Rolled back musical coin code
authorChristoph Sommer <mail@christoph-sommer.de>
Sat, 29 Apr 2006 20:00:57 +0000 (20:00 +0000)
committerChristoph Sommer <mail@christoph-sommer.de>
Sat, 29 Apr 2006 20:00:57 +0000 (20:00 +0000)
SVN-Revision: 3463

src/object/coin.cpp

index 36b035a..7e263aa 100644 (file)
@@ -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();