X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fobject%2Fendsequence_walkleft.cpp;h=809b8ba7cbbb3b0824524637cdfa7313caff972b;hb=84abfaeb33c5bf8dac0cfd9499d9d4c3e7d39881;hp=6a29edf9c1d1721b38ebaaac2feb159a106b44b0;hpb=3d5538c368cacafa6e41022e9c2f7bf091150252;p=supertux.git diff --git a/src/object/endsequence_walkleft.cpp b/src/object/endsequence_walkleft.cpp index 6a29edf9c..809b8ba7c 100644 --- a/src/object/endsequence_walkleft.cpp +++ b/src/object/endsequence_walkleft.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,16 +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 -#include "endsequence_walkleft.hpp" -#include "sector.hpp" +#include "object/endsequence_walkleft.hpp" #include "object/player.hpp" +#include "supertux/mainloop.hpp" +#include "supertux/sector.hpp" -EndSequenceWalkLeft::EndSequenceWalkLeft() -: EndSequence() +EndSequenceWalkLeft::EndSequenceWalkLeft() : + EndSequence(), + last_x_pos(), + endsequence_timer() { } @@ -41,7 +40,7 @@ EndSequenceWalkLeft::starting() { EndSequence::starting(); last_x_pos = -1; - endsequence_timer.start(7.3f); + endsequence_timer.start(7.3f * g_main_loop->get_speed()); } void @@ -68,3 +67,4 @@ EndSequenceWalkLeft::stopping() EndSequence::stopping(); } +/* EOF */