[Add] Restore health/armour when taking off from a planet.

This commit is contained in:
Allanis 2013-02-20 20:37:42 +00:00
parent 7e3bca1e51
commit 5381ceed02

View File

@ -148,6 +148,10 @@ void takeoff(void) {
vect_pset(&player->solid->vel, 0., 0.); vect_pset(&player->solid->vel, 0., 0.);
player->solid->dir = RNG(0, 359) * M_PI/180.; player->solid->dir = RNG(0, 359) * M_PI/180.;
// Heal the player.
player->armour = player->armour_max;
player->shield = player->shield_max;
space_init(NULL); space_init(NULL);
planet = NULL; planet = NULL;