From 3534d26ca916c9d493889c392010e5026326f548 Mon Sep 17 00:00:00 2001 From: Patrick Davison Date: Sat, 26 Jan 2013 02:23:17 -0800 Subject: Improved DisplayMapThumbnail --- includes/mapclass.php | 2 ++ includes/maps.php | 31 +------------------------------ 2 files changed, 3 insertions(+), 30 deletions(-) (limited to 'includes') diff --git a/includes/mapclass.php b/includes/mapclass.php index fa4d865..53609a7 100644 --- a/includes/mapclass.php +++ b/includes/mapclass.php @@ -91,6 +91,8 @@ class map { case 'r': $value = ''; $type = TileRock; break; case 'R': $value = 2; $type = TileRock; break; case 'q': $value = 3; $type = TileRock; break; + case 'x': $value = ''; $type = TileSinglePath; break; + case 'X': $value = 2; $type = TileSinglePath; break; //Probably a more intelligent way to do this; but it works: case 'a': $value = ''; $type = TileCheckpoint; break; case 'b': $value = 2; $type = TileCheckpoint; break; 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 .= ""; - //$r .= ""; - break; - case TileCheckpoint: - $r .= ""; - //$r .= ""; - break; - case TileRock: - $r .= ""; - //$r .= ""; - break; - case TileStart: - $r .= ""; - //$r .= ""; - break; - case TileFinish: - $r .= ""; - //$r .= ""; - break; - case TileTeleportIn: - $r .= ""; - //$r .= ""; - break; - case TileTeleportOut: - $r .= ""; - //$r .= ""; - break; - } + $r .= ""; } $r .= ""; } -- cgit v1.2.3