[Change] Should only rumble when hit by the explosion of a ship.
This commit is contained in:
parent
ea08de1644
commit
7534040724
@ -678,7 +678,8 @@ void pilot_explode(double x, double y, double radius,
|
|||||||
pilot_hit(p, &s, parent, dtype, damage);
|
pilot_hit(p, &s, parent, dtype, damage);
|
||||||
|
|
||||||
/* Shock wave from the explosion. */
|
/* 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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user