private static bool HasTileSurface(Map map, int X, int Y, int Z) { if (map == null) return false; #if(RUNUO2RC1) ArrayList tiles = map.GetStaticTilesAt(new Point2D(X, Y), true, true, true); #else StaticTile[] tiles = map.Tiles.GetStaticTiles(X, Y, true); //List<Server.StaticTile> tiles = map.GetStaticTilesAt(new Point2D(X, Y), true, true, true); #endif if (tiles == null) return false; // go through the tiles and see if any are at the Z location foreach (object o in tiles) { if (o is StaticTile) { StaticTile i = (StaticTile)o; if ((i.Z + i.Height) == Z) { return true; } } } return false; }