[Add] Take into account ship size for it's explosion.

This commit is contained in:
Allanis 2014-05-20 23:36:17 +01:00
parent 9a344ef9f0
commit 24379feab3

View File

@ -707,6 +707,8 @@ void pilot_explode(double x, double y, double radius,
rx = p->solid->pos.x - x;
ry = p->solid->pos.y - y;
dist = pow2(rx) + pow2(ry);
/* Take into account ship size. */
dist += pow2(p->ship->gfx_space->sw) + pow2(p->ship->gfx_space->sh);
/* Pilot is hit. */
if(dist < rad2) {