summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tutorial.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-07-09 21:43:14 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-07-09 21:43:14 +0000
commita4649f7bcd32304352b4d52a9c24a8455b41e8bc (patch)
tree2653ff094f7279d0f17c76d14528f0c1cbf1c52d /crawl-ref/source/tutorial.cc
parent94e75528f21fb8aa910c06893dfc46ca2785f20f (diff)
downloadcrawl-ref-a4649f7bcd32304352b4d52a9c24a8455b41e8bc.tar.gz
crawl-ref-a4649f7bcd32304352b4d52a9c24a8455b41e8bc.zip
Apply recent commits to 0.4, including Matthew's evil zoo fix.
Now how do I change the properties to native again? git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.4@6465 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/tutorial.cc')
-rw-r--r--crawl-ref/source/tutorial.cc15
1 files changed, 15 insertions, 0 deletions
diff --git a/crawl-ref/source/tutorial.cc b/crawl-ref/source/tutorial.cc
index 1507ade82a..ece23849de 100644
--- a/crawl-ref/source/tutorial.cc
+++ b/crawl-ref/source/tutorial.cc
@@ -262,6 +262,21 @@ static job_type _get_tutorial_job(unsigned int type)
}
}
+// Converts all secret doors in a fixed radius around the player's starting
+// position into normal closed doors.
+void tutorial_zap_secret_doors()
+{
+ for (int x = you.x_pos - 10; x <= you.x_pos + 10; x++)
+ for (int y = you.y_pos - 10; y <= you.y_pos + 10; y++)
+ {
+ if (!in_bounds(x,y))
+ continue;
+
+ if (grd[x][y] == DNGN_SECRET_DOOR)
+ grd[x][y] = DNGN_CLOSED_DOOR;
+ }
+}
+
// Prints the tutorial welcome screen.
static formatted_string _tut_starting_info(unsigned int width)
{