chiark / gitweb /
Cosmetic and error report bugfixes
authorIan Jackson <ian@liberator.relativity.greenend.org.uk>
Wed, 2 Sep 2009 23:38:31 +0000 (00:38 +0100)
committerIan Jackson <ian@liberator.relativity.greenend.org.uk>
Wed, 2 Sep 2009 23:38:31 +0000 (00:38 +0100)
yarrg/web/check_capacitystring
yarrg/web/query_route
yarrg/web/routetrade

index 088c6c5a13a54c37aed7028e05345a64116b351e..3d8f7a52701fd2983c09ca6bdc6629af1467ec91 100644 (file)
@@ -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;
        }
 }
index a65ef1c5723d9360e4566152d294ac0fd1350112..296c0126f8989fb1a22c897605e197944a1771d0 100644 (file)
@@ -88,6 +88,8 @@ Enter route (islands, or archipelagoes, separated by |s or commas;
  size=80
 </&>
 
+<strong>Advanced options - you may leave these blank:</strong>
+<p>
 <table>
 <tr>
 <td>
@@ -99,6 +101,7 @@ Vessel capacity:
         ($max_volume,$max_mass) = @_;
     }
  &>
+ size=30
 </&>
 
 <td>
@@ -112,6 +115,7 @@ Estimated loss per league:
     thingstring => 'lossperleague', emsgstore => \$emsg,
     perresult => sub { ($lossperleaguepct)= @_; }
  &>
+ size=10
 </&>
 
 </table>
index 9a6824e97ced58bb08b3e84b11e43f975fe8505f..9311f1a4fc508b247e580dda8c278d9294e51f04 100644 (file)
@@ -378,7 +378,7 @@ die "$cmpu $uue ?" if length $cmpu > 20;
 
 <p>
 % if (@islandids<=1) {
-Route is trivial.
+Route contains only one location.
 % }
 % if (!$specific) {
 Route contains archipelago(es), not just specific islands.