Unit of measure 'px' is redundant

This commit is contained in:
lopar
2020-09-18 02:06:32 +03:00
parent d753684958
commit c25335d846
7 changed files with 13 additions and 23 deletions

View File

@@ -1735,7 +1735,7 @@ function drawmap($map1, $players, $x, $y, $direction)
}
} else {
if ($i == 1) {
$ret .= "<img width=\"65\" height=\"80\" src=\"/i/dungeon/objects/$o.gif\" style=\"position: absolute; left: 0px; top: 110px\" />";
$ret .= " />";
}
if ($i == 2) {
$ret .= "<img width=\"43\" height=\"56\" src=\"/i/dungeon/objects/$o.gif\" style=\"position: absolute; left: 17px; top: 90px\" />";
@@ -1776,13 +1776,13 @@ function drawmap($map1, $players, $x, $y, $direction)
$objInWall = explode('/', $map[4][$sidewall]);
if ($objInWall[1] == 'o') {
if (!passablewall($map[4][$sidewall])) $ret .= "<div style=\"position:absolute;left:0px;top:0px;width:352px;height:240px;background-image:url($base/rsw$i$objInWall[2].gif)\"></div>";
if (!passablewall($map[4][$sidewall])) $ret .= "></div>";
} else {
if (!passablewall($map[4][$sidewall])) $ret .= "<div class=\"rsw$i\"></div>";
}
$objInWall = explode('/', $map[2][$sidewall]);
if ($objInWall[1] == 'o') {
if (!passablewall($map[2][$sidewall])) $ret .= "<div style=\"position:absolute;left:0px;top:0px;width:352px;height:240px;background-image:url($base/lsw$i$objInWall[2].gif)\"></div>";
if (!passablewall($map[2][$sidewall])) $ret .= "></div>";
} else {
if (!passablewall($map[2][$sidewall])) $ret .= "<div class=\"lsw$i\"></div>";
}
@@ -1837,12 +1837,7 @@ function drawmap($map1, $players, $x, $y, $direction)
$i--;
}
$ret .= "</div>
</td><td valign=\"top\">
<div style=\"height:116px;position:relative\">
<div style=\"padding-top:11px;padding-left:33px\">
<DIV class=\"MoveLine\"><IMG src=\"/i/move/wait3.gif\" id=\"MoveLine\" class=\"MoveLine\"></DIV>
<div style=\"visibility:hidden; height:0px\" id=\"moveto\">0</div>
$ret .= ">0</div>
</div>";
if ($direction == 0) {