diff options
Diffstat (limited to 'crawl-ref/source/tutorial.cc')
-rw-r--r-- | crawl-ref/source/tutorial.cc | 15 |
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) { |