From 818566a1806f7b51ed8a8ecf1fb9abe0757f610e Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sat, 15 Aug 2009 14:06:30 +0000 Subject: planet safe distance for launch and goto --- src/game/base/collision.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/game/base/collision.cc') diff --git a/src/game/base/collision.cc b/src/game/base/collision.cc index 215764c..4e6f4bb 100644 --- a/src/game/base/collision.cc +++ b/src/game/base/collision.cc @@ -6,6 +6,7 @@ #include "base/collision.h" #include "base/game.h" +#include "base/planet.h" #include "core/zone.h" #include "math/functions.h" #include "math/vector3f.h" @@ -39,7 +40,7 @@ void Collision::distance_test(core::EntityControlable *first, core::Entity *seco // warning zone: star corona or planet atmosphere if ((second->moduletype() == star_enttype) && (d-r < 50.0f)) { first->owner()->send_warning("^3Warning: entering star corona!^N"); - } else if ((second->moduletype() == planet_enttype) && (d-r < 15.0f)) { + } else if ((second->moduletype() == planet_enttype) && (d-r < Planet::safe_distance)) { first->owner()->send_warning("^3Warning: entering planet gravity well!^N"); } } -- cgit v1.2.3