]> git.pond.sub.org Git - empserver/commitdiff
(guerrilla): Make security units not raid friendly che.
authorMarkus Armbruster <armbru@pond.sub.org>
Sun, 8 Oct 2006 09:21:26 +0000 (09:21 +0000)
committerMarkus Armbruster <armbru@pond.sub.org>
Sun, 8 Oct 2006 09:21:26 +0000 (09:21 +0000)
src/lib/update/revolt.c

index b26c71ad8d3640a917a7ea06fec820efa5b58953..68cc9007ff82d4921b5570fb91d16fe9775bef6b 100644 (file)
@@ -168,7 +168,10 @@ guerrilla(struct sctstr *sp)
 
        mil += lp->lnd_item[I_MILIT];
 
-       /* Security troops can now kill up to 1/2 their complement each
+       if (sp->sct_che_target != sp->sct_own)
+           continue;
+
+       /* Security troops can now kill up to 1/5 their complement each
           update, before doing anything else. */
        if (lchr[(int)lp->lnd_type].l_flags & L_SECURITY) {
            int che_kill, r;