From f941608fd8a7f7ee8019e8e5f775c4494fd49398 Mon Sep 17 00:00:00 2001 From: Allanis Date: Sun, 17 Feb 2013 19:53:06 +0000 Subject: [PATCH] [Fix] Oops. Landing was based upon velocity alone, instead of distance and velocity. --- src/player.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/player.c b/src/player.c index ec283c2..f1ffcda 100644 --- a/src/player.c +++ b/src/player.c @@ -866,7 +866,7 @@ void player_land(void) { } Planet* planet = &cur_system->planets[planet_target]; if(planet_target >= 0) { - if(vect_dist(&player->solid->vel, &planet->pos) > planet->gfx_space->sw) { + if(vect_dist(&player->solid->pos, &planet->pos) > planet->gfx_space->sw) { player_message("You are too far away to land on %s", planet->name); return; }