X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=include.pl;h=34a019a81593763c9b3cf7786d9ea500651bf2a5;hb=6d04a6def4c0eece398ade98c4eb4ea701871431;hp=408361a369ecab58a8fceeec08ff5f41613efde8;hpb=e63c14e793686ca3d8a47df6866134c21a77e4b7;p=ndwebbie.git diff --git a/include.pl b/include.pl index 408361a..34a019a 100644 --- a/include.pl +++ b/include.pl @@ -63,7 +63,7 @@ sub max { } sub listTargets { - my $query = $ND::DBH->prepare(qq{SELECT t.id, r.id AS raid, r.tick+c.wave-1 AS landingtick, released_coords, coords(x,y,z),c.launched + my $query = $ND::DBH->prepare(qq{SELECT t.id, r.id AS raid, r.tick+c.wave-1 AS landingtick, released_coords, coords(x,y,z),c.launched,c.wave FROM raid_claims c JOIN raid_targets t ON c.target = t.id JOIN raids r ON t.raid = r.id @@ -76,7 +76,7 @@ ORDER BY r.tick+c.wave,x,y,z}); my $coords = "Target $target->{id}"; $coords = $target->{coords} if $target->{released_coords}; push @targets,{Coords => $coords, Launched => $target->{launched}, Raid => $target->{raid} - , Target => $target->{id}, Tick => $target->{landingtick}}; + , Target => $target->{id}, Tick => $target->{landingtick}, Wave => $target->{wave}}; } my $template = HTML::Template->new(filename => "templates/targetlist.tmpl"); $template->param(Targets => \@targets);