src/Projectile.cc
changeset 408 e6cfc44266af
parent 338 fe2b3c6fff54
child 412 721c60072091
--- a/src/Projectile.cc	Tue Jan 20 23:24:04 2009 +0200
+++ b/src/Projectile.cc	Tue Jan 20 23:30:18 2009 +0200
@@ -10,7 +10,7 @@
     weapon(weapon)
 {
     // set birth tick
-    birth_tick = world.tick_timer.get_ticks();
+    birth_tick = world.getTicks();
 
     // XXX: projectiles should be particles?
     std::vector<Vector> shape(4);
@@ -32,7 +32,7 @@
  
 void Projectile::onDestroy (Vector position, bool removeGround) {
     if (removeGround)
-        world.removeGround(position, weapon->getExplosionRadius());
+        world.terrain.removeGround(position, weapon->getExplosionRadius());
 
     destroy();
 }
@@ -68,7 +68,7 @@
    
 void Projectile::tick (TimeMS dt) {
     // expire projectiles
-    if (world.tick_timer.get_ticks() > birth_tick + weapon->getExpire())
+    if (world.getTicks() > birth_tick + weapon->getExpire())
         onDestroy(position, true);
 
     // super