From 7534040724a25dca19814e305a72b574fece07c5 Mon Sep 17 00:00:00 2001 From: Allanis Date: Mon, 19 May 2014 18:34:33 +0100 Subject: [PATCH] [Change] Should only rumble when hit by the explosion of a ship. --- src/pilot.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pilot.c b/src/pilot.c index ee4bb28..8bc3d05 100644 --- a/src/pilot.c +++ b/src/pilot.c @@ -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); } } }