From 016f8cccd578b8f794021035ff8f516a44bcbda4 Mon Sep 17 00:00:00 2001 From: Patrick Davison Date: Mon, 7 Nov 2011 02:05:16 -0800 Subject: Tutorial work --- includes/header.php | 2 +- includes/maps.php | 2 +- pages/tutorial.php | 126 +++++++++++++++++++++++++++++++++++++++++++--------- 3 files changed, 108 insertions(+), 22 deletions(-) diff --git a/includes/header.php b/includes/header.php index a9d3538..3943238 100644 --- a/includes/header.php +++ b/includes/header.php @@ -1,6 +1,6 @@ diff --git a/includes/maps.php b/includes/maps.php index 901a946..ef1d6e0 100644 --- a/includes/maps.php +++ b/includes/maps.php @@ -389,7 +389,7 @@ function GenerateShapedMap($shape, $params) { else $teleports = 0; - if ($params['walls']) + if (is_int($params['walls'])) $walls = $params['walls']; else $walls = 13; diff --git a/pages/tutorial.php b/pages/tutorial.php index a614173..3a12d32 100644 --- a/pages/tutorial.php +++ b/pages/tutorial.php @@ -1,9 +1,14 @@ @@ -15,19 +20,69 @@ $requiredmoves = '18';