From f030154fe727e25a2afe1f78b3998c2d2dba95e4 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Tue, 18 Aug 2009 09:24:15 +0000 Subject: astyle cleanup, corrects not loading of material textures --- src/game/base/planet.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/game/base/planet.cc') diff --git a/src/game/base/planet.cc b/src/game/base/planet.cc index b1ac976..f9535ba 100644 --- a/src/game/base/planet.cc +++ b/src/game/base/planet.cc @@ -8,7 +8,8 @@ #include "base/planet.h" -namespace game { +namespace game +{ Planet::Planet() : core::EntityGlobe(core::Entity::Static | core::Entity::Solid) { @@ -46,7 +47,7 @@ void Planet::dock(core::Entity *entity) Ship * ship = static_cast(entity); - if (math::distance(location(), ship->location()) > radius() + ship->radius() + 50.0f ) { + if (math::distance(location(), ship->location()) > radius() + ship->radius() + 50.0f) { if (ship->owner()) ship->owner()->send("Planet out of range"); return; @@ -55,7 +56,7 @@ void Planet::dock(core::Entity *entity) ship->get_location().assign(entity->location()); ship->set_state(core::Entity::Docked); - if (ship->owner() && ship->owner()->control() == ship) { + if (ship->owner() && ship->owner()->control() == ship) { ship->owner()->set_view(this); ship->owner()->send("^BDocking at " + name()); } -- cgit v1.2.3