Removed trailing whitespace from all *.?pp files
[supertux.git] / src / object / skull_tile.cpp
index 6dfecd8..48d9ed2 100644 (file)
 static const float CRACKTIME = 0.3f;
 static const float FALLTIME = 0.8f;
 
-SkullTile::SkullTile(const Reader& lisp)
-  : MovingSprite(lisp, "images/objects/skull_tile/skull_tile.sprite", LAYER_TILES, COLGROUP_STATIC), hit(false), falling(false)
+SkullTile::SkullTile(const Reader& lisp) :
+  MovingSprite(lisp, "images/objects/skull_tile/skull_tile.sprite", LAYER_TILES, COLGROUP_STATIC),
+  physic(),
+  timer(),
+  hit(false),
+  falling(false)
 {
 }
 
@@ -45,7 +49,7 @@ SkullTile::draw(DrawingContext& context)
   Vector pos = get_pos();
   // shaking
   if(timer.get_timegone() > CRACKTIME) {
-    pos.x += systemRandom.rand(-3, 3);
+    pos.x += graphicsRandom.rand(-3, 3);
   }
 
   sprite->draw(context, pos, layer);
@@ -74,6 +78,4 @@ SkullTile::update(float elapsed_time)
   hit = false;
 }
 
-IMPLEMENT_FACTORY(SkullTile, "skull_tile");
-
 /* EOF */