summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/l_you.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2013-03-26 22:41:14 +0100
committerAdam Borowski <kilobyte@angband.pl>2013-03-27 01:50:49 +0100
commit571f73be4f79efd4e60c217f23786132c96bd11f (patch)
tree48686f814c88e992e05da672dc21243fd373eeaf /crawl-ref/source/l_you.cc
parent7eaaf63a10138b1766130ece1916b2768775ac7f (diff)
downloadcrawl-ref-571f73be4f79efd4e60c217f23786132c96bd11f.tar.gz
crawl-ref-571f73be4f79efd4e60c217f23786132c96bd11f.zip
Fix teleporter vault trapping players.
Or, robbing them of XP and items unless they're spoiled (Nemelex's Gamble). In other cases, it's a matter of disrobing just to go through, which is a mere inconvenience except for zigsprint, where it was special-cased (yay consistency). It was also inconsistent with all other fixed means of teleportation, such as Passage of Golubria, portal vaults, hell portals, abyss portals, etc, which all are not swayed by mere -TELE. In the first discussion that happened, the only reasoning for the change was similarity of names between "teleporter" and "-TELE", rather than gameplay reasons. So let's deal with that instead. This reverts commit 7f0416492553db52d7613d506b8ab584b7819904.
Diffstat (limited to 'crawl-ref/source/l_you.cc')
-rw-r--r--crawl-ref/source/l_you.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/crawl-ref/source/l_you.cc b/crawl-ref/source/l_you.cc
index 8c53e00004..d583b09025 100644
--- a/crawl-ref/source/l_you.cc
+++ b/crawl-ref/source/l_you.cc
@@ -519,11 +519,8 @@ LUAFN(you_teleport_to)
bool move_monsters = false;
if (lua_gettop(ls) == 3)
move_monsters = lua_toboolean(ls, 3);
- bool override_stasis = false;
- if (lua_gettop(ls) == 4)
- override_stasis = lua_toboolean(ls, 4);
- lua_pushboolean(ls, you_teleport_to(place, move_monsters, override_stasis));
+ lua_pushboolean(ls, you_teleport_to(place, move_monsters));
if (player_in_branch(BRANCH_ABYSS))
maybe_shift_abyss_around_player();