]> git.pond.sub.org Git - empserver/commitdiff
Remove superfluous parenthesis.
authorMarkus Armbruster <armbru@pond.sub.org>
Fri, 14 Dec 2007 07:49:58 +0000 (07:49 +0000)
committerMarkus Armbruster <armbru@pond.sub.org>
Fri, 14 Dec 2007 07:49:58 +0000 (07:49 +0000)
src/lib/update/plague.c
src/lib/update/sect.c

index 38d5f985ab7decfd2ea8e2b1851a5e0bd084724f..5563d55124b7b40f1f43d435519227afcb11d90b 100644 (file)
@@ -183,7 +183,7 @@ plague_people(struct natstr *np, short *vec,
     }
     if (*ptime <= 0) {
        *pstage -= 1;
-       *ptime = (etus / 2) + (random() % etus);
+       *ptime = etus / 2 + random() % etus;
     }
     return stage;
 }
index 0befb2ee36aac95d9dfef0f491d803258f0f8bcf..613d2340fa05849283d9009ff950ba2d6e410ebe 100644 (file)
@@ -79,6 +79,7 @@ upd_buildeff(struct natstr *np, struct sctstr *sp, int *workp,
        *cost += work_cost;
        if (!n && IS_BIG_CITY(old_type) &&
            !IS_BIG_CITY(*desig)) {
+           // FIXME use trunc_people() and total_work()
            int maxpop = max_population(np->nat_level[NAT_RLEV], *desig, n);
            if (vec[I_CIVIL] > maxpop)
                vec[I_CIVIL] = maxpop;
@@ -137,9 +138,9 @@ enlist(short *vec, int etu, int *cost)
 
     /* Need to check treaties here */
     enlisted = 0;
-    maxmil = (vec[I_CIVIL] / 2) - vec[I_MILIT];
+    maxmil = vec[I_CIVIL] / 2 - vec[I_MILIT];
     if (maxmil > 0) {
-       enlisted = (etu * (10 + vec[I_MILIT]) * 0.05);
+       enlisted = etu * (10 + vec[I_MILIT]) * 0.05;
        if (enlisted > maxmil)
            enlisted = maxmil;
        vec[I_CIVIL] -= enlisted;