]> ruin.nu Git - ndwebbie.git/blobdiff - NDWeb/Pages/CovOp.pm
Use list_context variables instead of homebrewed ODD
[ndwebbie.git] / NDWeb / Pages / CovOp.pm
index e777499e03c552dc96a033a9818ee7866c8adf0f..162e64615bffa5f04d80a25ecefc21ea78aee0e4 100644 (file)
@@ -79,12 +79,10 @@ sub render_body {
        $query->execute($self->{PLANET});
 
        my @targets;
-       my $i = 0;
        while (my ($id,$coords,$metal,$crystal,$eonium,$seccents,$dists,$max) = $query->fetchrow){
-               $i++;
                push @targets,{Target => $id, Coords => $coords
                        , Metal => $metal, Crystal => $crystal, Eonium => $eonium, SecCents => $seccents
-                       , Dists => $dists, MaxResHack => $max, List => $list, ODD => $i % 2};
+                       , Dists => $dists, MaxResHack => $max, List => $list};
        }
        $BODY->param(Targets => \@targets);
        return $BODY;