From 1ca8026695fc4a10187178c91616c38fecfcc755 Mon Sep 17 00:00:00 2001 From: Tobias Markus Date: Mon, 9 Dec 2013 15:04:25 +0100 Subject: [PATCH] Don't count angrystone in level stats Formatting update for molerock --- src/badguy/angrystone.cpp | 1 + src/badguy/mole_rock.cpp | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/badguy/angrystone.cpp b/src/badguy/angrystone.cpp index a45692da4..bb0b476b2 100644 --- a/src/badguy/angrystone.cpp +++ b/src/badguy/angrystone.cpp @@ -33,6 +33,7 @@ AngryStone::AngryStone(const Reader& reader) : timer(), state(IDLE) { + countMe = false; physic.set_velocity_x(0); physic.set_velocity_y(0); physic.enable_gravity(true); diff --git a/src/badguy/mole_rock.cpp b/src/badguy/mole_rock.cpp index 9b3c0a6db..786b39677 100644 --- a/src/badguy/mole_rock.cpp +++ b/src/badguy/mole_rock.cpp @@ -20,8 +20,10 @@ #include "sprite/sprite.hpp" #include "supertux/object_factory.hpp" -MoleRock::MoleRock(const Reader& reader) - : BadGuy(reader, "images/creatures/mole/mole_rock.sprite", LAYER_TILES - 2), parent(0), initial_velocity(Vector(0, -400)) +MoleRock::MoleRock(const Reader& reader) : + BadGuy(reader, "images/creatures/mole/mole_rock.sprite", LAYER_TILES - 2), + parent(0), + initial_velocity(Vector(0, -400)) { physic.enable_gravity(true); countMe = false; -- 2.11.0