diff options
author | Patrick Davison <snapwilliam@gmail.com> | 2013-01-26 02:23:17 -0800 |
---|---|---|
committer | Patrick Davison <snapwilliam@gmail.com> | 2013-01-26 02:23:17 -0800 |
commit | 3534d26ca916c9d493889c392010e5026326f548 (patch) | |
tree | 233051b2a8dae828537d46e9d92f7d4b6373172d /includes/maps.php | |
parent | ae3bbe1c82ab5cca5bf9f26843efe8d3fd52185c (diff) | |
download | pathery-3534d26ca916c9d493889c392010e5026326f548.tar.xz |
Improved DisplayMapThumbnail
Diffstat (limited to 'includes/maps.php')
-rw-r--r-- | includes/maps.php | 31 |
1 files changed, 1 insertions, 30 deletions
diff --git a/includes/maps.php b/includes/maps.php index d41505a..e5b6fdc 100644 --- a/includes/maps.php +++ b/includes/maps.php @@ -300,36 +300,7 @@ function DisplayMapThumbnail($map, $link = false) { for ($x = 0; $x < $map->width; $x++) { //Number of Columns
$value = $map->tiles[$y][$x][TileValue];
$type = $map->tiles[$y][$x][TileType];
- switch($type) {
- case TileEmpty:
- $r .= "<td class='o'></td>";
- //$r .= "<td class='grid_td'></td>";
- break;
- case TileCheckpoint:
- $r .= "<td class='$type$value'></td>";
- //$r .= "<td class='c'></td>";
- break;
- case TileRock:
- $r .= "<td class='grid_td_rocks'></td>";
- //$r .= "<td style='background-color:#c33; width:4px; height:4px;'></td>";
- break;
- case TileStart:
- $r .= "<td class='grid_td_start'></td>";
- //$r .= "<td style='background-color:#2c2; width:4px; height:4px;'></td>";
- break;
- case TileFinish:
- $r .= "<td class='grid_td_finish'></td>";
- //$r .= "<td style='background-color:#666; width:4px; height:4px;'></td>";
- break;
- case TileTeleportIn:
- $r .= "<td class='$type$value'></td>";
- //$r .= "<td style='background-color:#666; width:4px; height:4px;'></td>";
- break;
- case TileTeleportOut:
- $r .= "<td class='$type$value'></td>";
- //$r .= "<td style='background-color:#666; width:4px; height:4px;'></td>";
- break;
- }
+ $r .= "<td class='$type$value'></td>";
}
$r .= "</tr>";
}
|