plane_sona() prints an empty line to make sonar contacts stand out.
Move it so the contact is visually "attached" to the right sector,
like this:
flying over sea at 15,-3
Sonar contact in 15,-3
sub #3 13,-3
flying over sea at 13,-3
Before:
flying over sea at 15,-3
Sonar contact in 15,-3
sb submarine (#3) 13,-3
flying over sea at 13,-3
continue;
add_shiplist(targ->shp_uid, head);
if (!found) {
continue;
add_shiplist(targ->shp_uid, head);
if (!found) {
- pr("\nSonar contact in %s\n", xyas(x, y, player->cnum));
+ pr("Sonar contact in %s\n", xyas(x, y, player->cnum));
found = 1;
}
if (getrel(getnatp(targ->shp_own), pp->pln_own) < FRIENDLY &&
found = 1;
}
if (getrel(getnatp(targ->shp_own), pp->pln_own) < FRIENDLY &&
xyas(targ->shp_x, targ->shp_y, player->cnum));
}
}
xyas(targ->shp_x, targ->shp_y, player->cnum));
}
}