--- 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