diff options
Diffstat (limited to 'src/entities/guidedMissile.c')
-rw-r--r-- | src/entities/guidedMissile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/entities/guidedMissile.c b/src/entities/guidedMissile.c index 7780404..1c1749b 100644 --- a/src/entities/guidedMissile.c +++ b/src/entities/guidedMissile.c @@ -73,7 +73,7 @@ void guidedMissileGoBoomBoom(Game * game, Entity * entity) { // Get player distance and get the damage the missile will do. float distance = Vector3Distance(player->position, entity->position); - float damage = fabs(GUIDED_MISSILE_DAMAGE - (distance * GUIDED_MISSILE_BOOM_DISTANCE_MOD)); + float damage = GUIDED_MISSILE_DAMAGE / distance; // Hurt this mother fucker. player->health -= damage; |