From: Ian Jackson Date: Wed, 2 Sep 2009 23:38:31 +0000 (+0100) Subject: Cosmetic and error report bugfixes X-Git-Tag: 3.4~14 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?p=ypp-sc-tools.db-test.git;a=commitdiff_plain;h=4c456dbec9fd31fa0676fe24159c67ff74724cdc;hp=099cd920655c1db6da4a1a57ec3baa30d16321d7 Cosmetic and error report bugfixes --- diff --git a/yarrg/web/check_capacitystring b/yarrg/web/check_capacitystring index 088c6c5..3d8f7a5 100644 --- a/yarrg/web/check_capacitystring +++ b/yarrg/web/check_capacitystring @@ -63,7 +63,7 @@ foreach $_ (split /\s+/, ${ $h->{String} }) { } elsif (m/^([1-9]\d{0,5}(?:\.\d{0,3})?)t/) { $def->('mass', $1 * 1000); } else { - $h->{Emsg}= "Cannot understand capacity \`$_'."; + ${ $h->{Emsg} }= "Cannot understand capacity \`$_'."; last; } } diff --git a/yarrg/web/query_route b/yarrg/web/query_route index a65ef1c..296c012 100644 --- a/yarrg/web/query_route +++ b/yarrg/web/query_route @@ -88,6 +88,8 @@ Enter route (islands, or archipelagoes, separated by |s or commas; size=80 +Advanced options - you may leave these blank: +

@@ -99,6 +101,7 @@ Vessel capacity: ($max_volume,$max_mass) = @_; } &> + size=30 @@ -112,6 +115,7 @@ Estimated loss per league: thingstring => 'lossperleague', emsgstore => \$emsg, perresult => sub { ($lossperleaguepct)= @_; } &> + size=10
diff --git a/yarrg/web/routetrade b/yarrg/web/routetrade index 9a6824e..9311f1a 100644 --- a/yarrg/web/routetrade +++ b/yarrg/web/routetrade @@ -378,7 +378,7 @@ die "$cmpu $uue ?" if length $cmpu > 20;

% if (@islandids<=1) { -Route is trivial. +Route contains only one location. % } % if (!$specific) { Route contains archipelago(es), not just specific islands.