X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fobject%2Ffireworks.cpp;h=18648e025c5a71daf964505b8f4f048be0c00550;hb=c0093d25093395cb62fc2526ab42be65a9f015b8;hp=d4f83eacbbb857cfec121a881e4e73c671ad7b5d;hpb=90a1a01a554d9d6852809dded1abe3430b9c0c2b;p=supertux.git diff --git a/src/object/fireworks.cpp b/src/object/fireworks.cpp index d4f83eacb..18648e025 100644 --- a/src/object/fireworks.cpp +++ b/src/object/fireworks.cpp @@ -1,3 +1,23 @@ +// $Id$ +// +// SuperTux +// Copyright (C) 2005 Matthias Braun +// +// This program is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License +// as published by the Free Software Foundation; either version 2 +// of the License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA +// 02111-1307, USA. + #include #include "fireworks.h" @@ -34,7 +54,7 @@ Fireworks::action(float ) sector->add_object(new Particles(pos, 0, 360, Vector(140, 140), Vector(0, 0), 45, Color(red, green, 0), 3, 1.3, LAYER_FOREGROUND1+1)); - SoundManager::get()->play_sound(IDToSound(SND_FIREWORKS)); + sound_manager->play_sound("fireworks"); timer.start(((float) rand() / RAND_MAX) + .5); } }