[Change] Pilots turning hostile should depend a bit less on FPS.
This commit is contained in:
parent
2e76ef4019
commit
0b3869c831
@ -958,6 +958,8 @@ static void pilot_update(Pilot* pilot, const double dt) {
|
|||||||
/* Player damage decay. */
|
/* Player damage decay. */
|
||||||
if(pilot->player_damage > 0.)
|
if(pilot->player_damage > 0.)
|
||||||
pilot->player_damage -= dt * PILOT_HOSTILE_DECAY;
|
pilot->player_damage -= dt * PILOT_HOSTILE_DECAY;
|
||||||
|
else
|
||||||
|
pilot->player_damage = 0.;
|
||||||
|
|
||||||
/* Check limits. */
|
/* Check limits. */
|
||||||
if(pilot->armour > pilot->armour_max) pilot->armour = pilot->armour_max;
|
if(pilot->armour > pilot->armour_max) pilot->armour = pilot->armour_max;
|
||||||
|
Loading…
Reference in New Issue
Block a user