summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tutorial.cc
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2010-03-03 00:54:15 -0600
committerJesse Luehrs <doy@tozt.net>2010-03-03 00:54:15 -0600
commited50cd62909557f72d505ce96470b7a6ac6308e5 (patch)
tree8fbb4ca83efd69c290e811ec70dee5ec47ed3d7d /crawl-ref/source/tutorial.cc
parent7c2cae61f9ae0eb7d7951cca602a7dd7aef7b7e7 (diff)
downloadcrawl-ref-ed50cd62909557f72d505ce96470b7a6ac6308e5.tar.gz
crawl-ref-ed50cd62909557f72d505ce96470b7a6ac6308e5.zip
make tutorial games use the tutorial game type (this does nothing yet)
Diffstat (limited to 'crawl-ref/source/tutorial.cc')
-rw-r--r--crawl-ref/source/tutorial.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/crawl-ref/source/tutorial.cc b/crawl-ref/source/tutorial.cc
index 0fba0fa4d8..44f2f64268 100644
--- a/crawl-ref/source/tutorial.cc
+++ b/crawl-ref/source/tutorial.cc
@@ -51,6 +51,7 @@
#include "skills2.h"
#include "species.h"
#include "spl-book.h"
+#include "state.h"
#include "stuff.h"
#include "env.h"
#include "tags.h"
@@ -199,6 +200,9 @@ bool pick_tutorial()
if (!Options.book || Options.book == SBT_SUMM)
Options.book = SBT_RANDOM;
Options.weapon = WPN_HAND_AXE; // easiest choice for fighters
+
+ crawl_state.type = GAME_TYPE_TUTORIAL;
+
return (true);
}