X-Git-Url: https://git.distorted.org.uk/~mdw/newkind/blobdiff_plain/419dfc818f70155e4be4b0bd0d15c3d47b4d7653..40471f009dde3bd859d4524bdaca45833e12a8b4:/swat.c diff --git a/swat.c b/swat.c index c44d939..104277f 100644 --- a/swat.c +++ b/swat.c @@ -18,6 +18,7 @@ * Special Weapons And Tactics. */ +#include #include #include #include @@ -355,7 +356,8 @@ void explode_object (int un) void check_target (int un, struct univ_object *flip) { struct univ_object *univ; - + char buf[80]; + univ = &universe[un]; if (in_target (univ->type, flip->location.x, flip->location.y, flip->location.z)) @@ -363,7 +365,9 @@ void check_target (int un, struct univ_object *flip) if ((missile_target == MISSILE_ARMED) && (univ->type >= 0)) { missile_target = un; - info_message ("Target Locked"); + sprintf(buf, "Target Locked (%s)", + ship_list[univ->type]->name); + info_message (buf); snd_play_sample (SND_BEEP); }