]> ruin.nu Git - ndwebbie.git/commitdiff
Don't show fleets with unknown mission type on intel overview
authorMichael Andreen <harv@ruin.nu>
Sun, 7 Oct 2007 10:22:32 +0000 (12:22 +0200)
committerMichael Andreen <harv@ruin.nu>
Sun, 7 Oct 2007 10:22:32 +0000 (12:22 +0200)
NDWeb/Pages/Intel.pm

index 58a8c67510ab72320e08e516fc117114ca9e0655..b1292655b6761452e998e6bff3f9e78220535044 100644 (file)
@@ -204,7 +204,7 @@ sub render_body {
 
        }elsif(!param('coords')){
                my $query = $DBH->prepare(intelquery('o.alliance AS oalliance,coords(o.x,o.y,o.z) AS origin, t.alliance AS talliance,coords(t.x,t.y,t.z) AS target',qq{not ingal
-                               AND ((( t.alliance_id != o.alliance_id OR t.alliance_id IS NULL OR o.alliance_id IS NULL) AND i.mission != 'Attack')
+                               AND ((( t.alliance_id != o.alliance_id OR t.alliance_id IS NULL OR o.alliance_id IS NULL) AND (i.mission = 'Defend' OR i.mission = 'AllyDef' ))
                                OR ( t.alliance_id = o.alliance_id AND i.mission = 'Attack'))
                                AND i.sender NOT IN (SELECT planet FROM users u NATURAL JOIN groupmembers gm WHERE gid = 8 AND planet IS NOT NULL)
                                $showticks}));