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

Comparing cfmaps/cfmap2html (file contents):
Revision 1.14 by root, Sun Nov 20 08:19:11 2005 UTC vs.
Revision 1.15 by root, Sun Nov 20 08:24:45 2005 UTC

120 for my $x (0.. $meta->{width} - 1) { 120 for my $x (0.. $meta->{width} - 1) {
121 if (my $as = $meta->{map}[$x][$y]) { 121 if (my $as = $meta->{map}[$x][$y]) {
122 my @class; 122 my @class;
123 123
124 push @class, "fishy" if grep $_->{invisible} || $_->{face} || exists $_->{no_pass}, @$as; 124 push @class, "fishy" if grep $_->{invisible} || $_->{face} || exists $_->{no_pass}, @$as;
125 push @class, "exit" if grep $is_exit{$arch->{$_->{_name}}{type}}, @$as; 125 push @class, "exit" if grep $is_exit{$arch->{$_->{_name}}{type}} && $_->{slaying}, @$as;
126 126
127 print "<td", (@class ? " class='" . (join " ", @class) . "'" : ""), ">"; 127 print "<td", (@class ? " class='" . (join " ", @class) . "'" : ""), ">";
128 print "<div>"; 128 print "<div>";
129 129
130 print join "\n", map "<span class='c'>$_</span>", 130 print join "\n", map "<span class='c'>$_</span>",

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines