]> git.pond.sub.org Git - empserver/commitdiff
Remove some redundant parenthesis; no functional change.
authorMarkus Armbruster <armbru@pond.sub.org>
Sun, 2 Oct 2005 10:16:19 +0000 (10:16 +0000)
committerMarkus Armbruster <armbru@pond.sub.org>
Sun, 2 Oct 2005 10:16:19 +0000 (10:16 +0000)
src/lib/subs/aircombat.c
src/lib/subs/fortdef.c
src/lib/subs/retreat.c
src/lib/update/sail.c

index bbb0ba4da404d3b6253eb42f89dd2c9238ea7a62..c8ac876cdaa6a2fc9441d5842a721eefa7ce5931 100644 (file)
@@ -195,7 +195,7 @@ ac_encounter(struct emp_qelem *bomb_list, struct emp_qelem *esc_list,
 
        evaded = do_evade(bomb_list, esc_list);
 
-       if (sect.sct_own != 0 && sect.sct_own != plane_owner && (!evaded)) {
+       if (sect.sct_own != 0 && sect.sct_own != plane_owner && !evaded) {
            /* We only show planes overhead if they didn't
             * evade radar */
            overfly[sect.sct_own]++;
@@ -216,7 +216,7 @@ ac_encounter(struct emp_qelem *bomb_list, struct emp_qelem *esc_list,
        /* mission planes aborted due to flak -- don't send escorts */
        if (QEMPTY(bomb_list))
            break;
-       if ((!no_air_defense) && (!evaded))
+       if (!no_air_defense && !evaded)
            air_defense(x, y, plane_owner, bomb_list, esc_list);
 
        if (sect.sct_own == 0 || sect.sct_own == plane_owner)
index c8c74901544ce107e0d62ef8aff0ada323e4aeb9..8cb328e5f2adad67c85a10f635d6ecbd77740108 100644 (file)
@@ -92,7 +92,7 @@ sd(natid att, natid own, coord x, coord y, int noisy, int defending,
            continue;
        if (ship.shp_effic < 60)
            continue;
-       if ((mchr[(int)ship.shp_type].m_flags & M_SUB) && (!usesubs))
+       if ((mchr[(int)ship.shp_type].m_flags & M_SUB) && !usesubs)
            continue;
        range = techfact(ship.shp_tech,
                         ship.shp_frnge * ship.shp_effic / 200.0);
index 120f3cf2143b8bfab4780bda3c00d08d4baae5e2..94652ecad24e937effca92136c8064679ba7937f 100644 (file)
@@ -227,7 +227,7 @@ retreat_ship1(struct shpstr *sp, s_char code, int orig)
     n = (-1 * MAX_RETREAT);
     stopping = 0;
     time_to_stop = 0;
-    while ((!stopping) && n) {
+    while (!stopping && n) {
        dx = dy = 0;
        if (sp->shp_rpath[0] == 0 || sp->shp_rpath[0] == 0) {
            stopping = 1;
@@ -453,7 +453,7 @@ retreat_land1(struct lndstr *lp, s_char code, int orig)
     n = (-1 * MAX_RETREAT);
     stopping = 0;
     time_to_stop = 0;
-    while ((!stopping) && n) {
+    while (!stopping && n) {
        dx = dy = 0;
        if (lp->lnd_rpath[0] == 0 || lp->lnd_rpath[0] == 0) {
            stopping = 1;
index dba8d5061675da4051033aab8bbaccee96a54017..c17de02acc75be390caf70a0658577b7c931a1f1 100644 (file)
@@ -135,7 +135,7 @@ sail_find_fleet(struct fltheadstr **head, struct shpstr *sp)
        return 0;
     }
 
-    for (stop = 0, cp = ap->shp_path; (!stop) && (*cp); cp++) {
+    for (stop = 0, cp = ap->shp_path; !stop && *cp; cp++) {
        switch (*cp) {
        case 'y':
        case 'u':