torpedo: Print "Starting our attack run" regardless of target
Instead of printing it only when the target owned by somebody else. Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
parent
33497e4242
commit
88bfa2e6a3
2 changed files with 4 additions and 4 deletions
|
@ -145,8 +145,10 @@ torp(void)
|
|||
continue;
|
||||
}
|
||||
|
||||
if (!(sub_mcp->m_flags & M_SUB))
|
||||
if (!(sub_mcp->m_flags & M_SUB)) {
|
||||
pr("Starting our attack run...\n");
|
||||
anti_torp(sub.shp_uid, ntorping, vshipown);
|
||||
}
|
||||
getship(sub.shp_uid, &sub);
|
||||
if (sub.shp_own == 0)
|
||||
continue;
|
||||
|
@ -216,9 +218,6 @@ anti_torp(int f, int ntorping, int vshipown)
|
|||
if (sub.shp_own == vshipown)
|
||||
return;
|
||||
|
||||
if ((mchr[(int)sub.shp_type].m_flags & M_SUB) == 0)
|
||||
pr("Starting our attack run...\n");
|
||||
|
||||
x = 0;
|
||||
while (getship(x++, &dd) && sub.shp_effic >= SHIP_MINEFF) {
|
||||
if (dd.shp_own == 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue