ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/cfmaps/cfmap2html
(Generate patch)

Comparing cfmaps/cfmap2html (file contents):
Revision 1.32 by root, Sun Jan 6 21:12:00 2008 UTC vs.
Revision 1.34 by root, Sat Sep 20 18:23:50 2008 UTC

15# 15#
16# You should have received a copy of the GNU General Public License 16# You should have received a copy of the GNU General Public License
17# along with cfmaps; if not, write to the Free Software 17# along with cfmaps; if not, write to the Free Software
18# Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 18# Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 19
20our $VERSION = '2.11'; 20our $VERSION = '2.112';
21 21
22use strict; 22use strict;
23 23
24use List::Util qw(min max); 24use List::Util qw(min max);
25use Deliantra; 25use Deliantra;
124 124
125 print "<p class='m'>", 125 print "<p class='m'>",
126 escape_html delete $info->{msg}, 126 escape_html delete $info->{msg},
127 "</p>"; 127 "</p>";
128 128
129 print "<p class='i'><table>", 129 print "<table class='i'>",
130 (map "<tr><td>" . (escape_html $_) . "</td><td>" . (escape_html $info->{$_}) . "</td></tr>", 130 (map "<tr><td>" . (escape_html $_) . "</td><td>" . (escape_html $info->{$_}) . "</td></tr>",
131 grep !/^_/, keys %$info), 131 grep !/^_/, keys %$info),
132 "</table></p>"; 132 "</table>",
133 "<p />";
133 134
134 print "<table class='map'>"; 135 print "<table class='map'>";
135 136
136 my %ignore = map +($_ => 1), qw(name _name _atype x y); 137 my %ignore = map +($_ => 1), qw(name _name _atype x y);
137 my %is_exit = map +($_ => 1), 41, 57, 66; 138 my %is_exit = map +($_ => 1), 41, 57, 66;
155 156
156 print "<div>($x|$y)"; 157 print "<div>($x|$y)";
157 158
158 sub print_archs { 159 sub print_archs {
159 print "<ul>"; 160 print "<ul>";
160 for my $a (@{$_[0]}) { 161 for my $a (reverse @{$_[0]}) {
161 my $o = $ARCH{$a->{_name}}; 162 my $o = $ARCH{$a->{_name}};
162 my $type = $a->{type} || $o->{type}; 163 my $type = $a->{type} || $o->{type};
163 my $aname = escape_html $a->{_name}; 164 my $aname = escape_html $a->{_name};
164 my $name = escape_html $a->{name} || $o->{name}; 165 my $name = escape_html $a->{name} || $o->{name};
165 166

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines