X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fobject%2Fendsequence_fireworks.cpp;h=4fab4e1e70923252f9f4ee600bd445dab3236fa7;hb=c1277f5b7db9f55d1d28f658b4e804f32b76f0ce;hp=8bcd92786c94f081bd2c25f158a175b39bce2580;hpb=3d5538c368cacafa6e41022e9c2f7bf091150252;p=supertux.git diff --git a/src/object/endsequence_fireworks.cpp b/src/object/endsequence_fireworks.cpp index 8bcd92786..4fab4e1e7 100644 --- a/src/object/endsequence_fireworks.cpp +++ b/src/object/endsequence_fireworks.cpp @@ -1,12 +1,10 @@ -// $Id$ -// // SuperTux - End Sequence: Tux walks right // Copyright (C) 2007 Christoph Sommer // -// 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 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 3 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 @@ -14,17 +12,17 @@ // 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. +// along with this program. If not, see . + +#include "object/endsequence_fireworks.hpp" -#include -#include "endsequence_fireworks.hpp" -#include "sector.hpp" -#include "object/player.hpp" #include "object/fireworks.hpp" +#include "supertux/mainloop.hpp" +#include "supertux/sector.hpp" -EndSequenceFireworks::EndSequenceFireworks() -: EndSequence() +EndSequenceFireworks::EndSequenceFireworks() : + EndSequence(), + endsequence_timer() { } @@ -41,7 +39,7 @@ void EndSequenceFireworks::starting() { EndSequence::starting(); - endsequence_timer.start(7.3f); + endsequence_timer.start(7.3f * g_main_loop->get_speed()); Sector::current()->add_object(new Fireworks()); } @@ -64,3 +62,4 @@ EndSequenceFireworks::stopping() EndSequence::stopping(); } +/* EOF */