X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fbadguy%2Fwillowisp.cpp;h=6e069e8c3719a6aa5e71b5e58597e77a7740346b;hb=a113d3bd1feddd510e3b2852b0d42522735eee40;hp=6480c1675f9e3715c63393aac95486296534cb30;hpb=ff4c6994b952e26b854461d739eb3bcbfc30719f;p=supertux.git diff --git a/src/badguy/willowisp.cpp b/src/badguy/willowisp.cpp index 6480c1675..6e069e8c3 100644 --- a/src/badguy/willowisp.cpp +++ b/src/badguy/willowisp.cpp @@ -1,5 +1,5 @@ // $Id$ -// +// // SuperTux - "Will-O-Wisp" Badguy // Copyright (C) 2006 Christoph Sommer // @@ -12,7 +12,7 @@ // 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 @@ -55,12 +55,12 @@ void WillOWisp::draw(DrawingContext& context) { sprite->draw(context, get_pos(), layer); - + context.push_target(); context.set_target(DrawingContext::LIGHTMAP); sprite->draw(context, get_pos(), layer); - + context.pop_target(); } @@ -78,7 +78,7 @@ WillOWisp::active_update(float elapsed_time) mystate = STATE_TRACKING; } } - + if (mystate == STATE_TRACKING) { if (dist.norm() <= VANISH_RANGE) { Vector dir = dist.unit(); @@ -101,7 +101,7 @@ WillOWisp::active_update(float elapsed_time) remove_me(); } } - + } void @@ -156,4 +156,3 @@ WillOWisp::collision_player(Player& player, const CollisionHit& ) { } IMPLEMENT_FACTORY(WillOWisp, "willowisp") -