summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spells3.cc
diff options
context:
space:
mode:
authorJude Brown <bookofjude@users.sourceforge.net>2009-12-02 20:56:27 +1000
committerJude Brown <bookofjude@users.sourceforge.net>2009-12-02 20:57:20 +1000
commit9fd59af7bc9de80793ca8cff2c626e2324076d90 (patch)
tree2d95c165ba904b5ebf0b3ce4d8a80dc5b6d75942 /crawl-ref/source/spells3.cc
parent22511077551803bfcffc7631e37a44768eff9de6 (diff)
downloadcrawl-ref-9fd59af7bc9de80793ca8cff2c626e2324076d90.tar.gz
crawl-ref-9fd59af7bc9de80793ca8cff2c626e2324076d90.zip
Don't prompt for cancelling Wizard teleport.
Also ignore beholders.
Diffstat (limited to 'crawl-ref/source/spells3.cc')
-rw-r--r--crawl-ref/source/spells3.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/crawl-ref/source/spells3.cc b/crawl-ref/source/spells3.cc
index 75f12203a8..34940a3df1 100644
--- a/crawl-ref/source/spells3.cc
+++ b/crawl-ref/source/spells3.cc
@@ -1490,15 +1490,16 @@ static bool _teleport_player(bool allow_control, bool new_abyss_area, bool wizar
if (pos == you.pos() || pos == coord_def(-1,-1))
{
- if (!yesno("Are you sure you want to cancel this teleport?",
- true, 'n'))
- continue;
+ if (!wizard_tele)
+ if (!yesno("Are you sure you want to cancel this teleport?",
+ true, 'n'))
+ continue;
you.turn_is_over = false;
return (false);
}
monsters *beholder = you.get_beholder(pos);
- if (beholder)
+ if (beholder && !wizard_tele)
{
mprf("You cannot teleport away from %s!",
beholder->name(DESC_NOCAP_THE, true).c_str());