]> git.pond.sub.org Git - empserver/commitdiff
Remove commented out useless sub interdiction check
authorMarkus Armbruster <armbru@pond.sub.org>
Wed, 4 Jun 2008 18:29:54 +0000 (20:29 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Fri, 6 Jun 2008 19:31:55 +0000 (21:31 +0200)
Submarines can only interdict ships.  The check for that was replaced
in v4.0.9.  The old check was commented out.  It should have been
removed instead.

src/lib/subs/mission.c

index 1b69b06dfdbda46d2c807cb6dbc3730b0c3bd4be..1f05b85e4896c4db3b010fd82b8bfa6b7d51a0ad 100644 (file)
@@ -468,11 +468,6 @@ perform_mission(coord x, coord y, natid victim, struct emp_qelem *list,
                 (mission == MI_SINTERDICT)) &&
                (md > ship_max_interdiction_range))
                continue;
-/*
-  if ((mcp->m_flags & M_SUB) &&
-  (sect.sct_type != SCT_WATER))
-  continue;
-*/
            if (mission == MI_SINTERDICT) {
                if (!(mcp->m_flags & M_SONAR))
                    continue;