[Add] Restore health/armour when taking off from a planet.
This commit is contained in:
parent
7e3bca1e51
commit
5381ceed02
@ -148,6 +148,10 @@ void takeoff(void) {
|
||||
vect_pset(&player->solid->vel, 0., 0.);
|
||||
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);
|
||||
|
||||
planet = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user