]> ruin.nu Git - ndwebbie.git/blobdiff - NDWeb/Pages/Raids.pm
allow bcs to add target assignments
[ndwebbie.git] / NDWeb / Pages / Raids.pm
index 3fb41458751caa7371a37127e46fc87a9567b4f4..4b454589af81e11a6bebc19e4bba811a72d39a49 100644 (file)
@@ -245,14 +245,14 @@ sub render_body {
                                ORDER BY name,i.tick DESC
                        });
                        $unitscans->execute($target->{planet}) or warn $DBH->errstr;
-                       my $ships = $DBH->prepare(q{SELECT ship,amount FROM fleet_ships WHERE id = ?});
+                       my $ships = $DBH->prepare(q{SELECT ship,amount FROM fleet_ships
+                               WHERE id = ? ORDER BY num
+                       });
                        my @missions;
                        while (my $mission = $unitscans->fetchrow_hashref){
                                my @ships;
                                $ships->execute($mission->{id});
-                               my $j = 0;
                                while (my $ship = $ships->fetchrow_hashref){
-                                       $ship->{ODD} = $j++ % 2;
                                        push @ships,$ship;
                                }
                                push @ships, {ship => 'No', amount => 'ships'} if @ships == 0;