[Change] Should only rumble when hit by the explosion of a ship.

This commit is contained in:
Allanis 2014-05-19 18:34:33 +01:00
parent ea08de1644
commit 7534040724

View File

@ -678,7 +678,8 @@ void pilot_explode(double x, double y, double radius,
pilot_hit(p, &s, parent, dtype, damage);
/* Shock wave from the explosion. */
spfx_shake(pow2(damage) / pow2(100.) * SHAKE_MAX);
if(p->id == PILOT_PLAYER)
spfx_shake(pow2(damage) / pow2(100.) * SHAKE_MAX);
}
}
}