Removed trailing whitespace from all *.?pp files
[supertux.git] / src / object / skull_tile.cpp
index 5ad5eab..48d9ed2 100644 (file)
@@ -25,10 +25,10 @@ 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), 
+  MovingSprite(lisp, "images/objects/skull_tile/skull_tile.sprite", LAYER_TILES, COLGROUP_STATIC),
   physic(),
   timer(),
-  hit(false), 
+  hit(false),
   falling(false)
 {
 }
@@ -49,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);