X-Git-Url: https://git.distorted.org.uk/~mdw/rocl/blobdiff_plain/1ded87baa037e0d9a72ae58b86bdf34244464f01..161e6ada263c291ff3a49b1d9f371ca5f6a1751f:/elite.tcl diff --git a/elite.tcl b/elite.tcl index e652eff..fa81e4c 100644 --- a/elite.tcl +++ b/elite.tcl @@ -1,6 +1,6 @@ #! /usr/bin/tclsh # -# $Id: elite.tcl,v 1.4 2003/03/01 17:47:07 mdw Exp $ +# $Id: elite.tcl,v 1.5 2003/03/04 10:26:47 mdw Exp $ package require "elite-bits" "1.0.0" @@ -306,7 +306,7 @@ proc weight-hops {from to} { proc weight-fuel {from to} { elite-worldinfo f $from elite-worldinfo t $to - return [world-distance $f(x) $f(y) $t(x) $t(y)] + return [expr {[world-distance $f(x) $f(y) $t(x) $t(y)]/10.0}] } # --- weight-safety A B --- @@ -435,7 +435,7 @@ proc in-galaxy-p {g pp} { proc world-summary {s} { global eco gov elite-worldinfo p $s - return [format "%-12s %4d %4d %-11s %-10s %2d %s" \ + return [format "%-8s %4d %4d %-11s %-10s %2d %s" \ $p(name) $p(x) $p(y) \ $eco($p(economy)) $gov($p(government)) $p(techlevel) $p(seed)] }