]> git.pond.sub.org Git - empserver/commitdiff
(navi): Add missing local map for ship list.
authorRon Koenderink <rkoenderink@yahoo.ca>
Thu, 29 Jun 2006 01:24:34 +0000 (01:24 +0000)
committerRon Koenderink <rkoenderink@yahoo.ca>
Thu, 29 Jun 2006 01:24:34 +0000 (01:24 +0000)
Broken in rev 1.27.  Remove unnecessary brackets.

src/lib/commands/navi.c

index ba36ce8d8c211de2bffc92ac2a8708ec4fb3093b..393f7e9bca09f9ac517992eccad95c842616c58c 100644 (file)
@@ -139,9 +139,8 @@ navi(void)
                                 mchr[(int)shp->shp_type].m_vrnge),
                   (mchr[(int)shp->shp_type].m_flags & M_SONAR)
                   ? techfact(shp->shp_tech, 1.0) : 0.0);
-       if (cp == NULL || *cp == '\0') {
+       if (cp == NULL || *cp == '\0')
            cp = &dirch[DIR_STOP];
-       }
        dir = chkdir(*cp, DIR_STOP, DIR_VIEW);
        if (dir >= 0) {
            if (dir == DIR_VIEW)
@@ -187,7 +186,6 @@ navi(void)
            break;
        case 'i':
            shp_list(&ship_list);
-           skip = 1;
            break;
        case 'm':
            stopping |= shp_sweep(&ship_list, 1, 0, player->cnum);