Made torpedo collision explosions slightly larger such that smaller radius
authorMatthew Mondor <mmondor@pulsar-zone.net>
Mon, 14 Jul 2014 08:35:26 +0000 (08:35 +0000)
committerMatthew Mondor <mmondor@pulsar-zone.net>
Mon, 14 Jul 2014 08:35:26 +0000 (08:35 +0000)
ones are audible in the client.

mmsoftware/mystic_ships/server/src/torp.c

index 175dcb6..65e9397 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: torp.c,v 1.8 2014/07/14 08:26:31 mmondor Exp $ */
+/* $Id: torp.c,v 1.9 2014/07/14 08:35:26 mmondor Exp $ */
 
 /*
  * Copyright (c) 2006, Matthew Mondor
@@ -143,8 +143,8 @@ torps_update(void)
                        tr2 = t2->client->ship.ship->torp_radius;
                        if (square_intersect(tx, ty, tr, tx2, ty2, tr2) &&
                            circle_intersect(tx, ty, tr, tx2, ty2, tr2)) {
-                               collision_create(tr * tr2, tx, ty);
-                               collision_create(tr * tr2, tx2, ty2);
+                               collision_create(tr * tr2 + 2, tx, ty);
+                               collision_create(tr * tr2 + 2, tx2, ty2);
                                torp_destroyed = 1;
                                /*
                                 * XXX We should destroy t2, but this could