diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-05-30 19:13:17 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-05-30 19:13:17 +0000 |
commit | f4bb02dd66fdf77bfd0ec304e4ae160a27916f42 (patch) | |
tree | 3548083ff164b98e4d59b36050241d64921dbe3a /crawl-ref/source/spells3.cc | |
parent | 5277bf424bbd6aeab3d8296ce68695717cfff9ed (diff) | |
download | crawl-ref-f4bb02dd66fdf77bfd0ec304e4ae160a27916f42.tar.gz crawl-ref-f4bb02dd66fdf77bfd0ec304e4ae160a27916f42.zip |
* AutoID rings of teleport control after teleporting.
* Fix 2788773: Infinite scroll uses by clicking on a stack in tiles.
* Fix 2792095: Tiled menus possibly containing more than 52 items.
* Fix clicking on items not setting just_clicked_on_item until after the
effect happened.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9853 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/spells3.cc')
-rw-r--r-- | crawl-ref/source/spells3.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/crawl-ref/source/spells3.cc b/crawl-ref/source/spells3.cc index 4797251ab2..b4a4ed0dd4 100644 --- a/crawl-ref/source/spells3.cc +++ b/crawl-ref/source/spells3.cc @@ -1300,12 +1300,14 @@ static bool _teleport_player( bool allow_control, bool new_abyss_area ) } coord_def pos(1, 0); - bool large_change = false; + bool large_change = false; + bool check_ring_TC = false; if (is_controlled) { mpr("You may choose your destination (press '.' or delete to select)."); mpr("Expect minor deviation."); + check_ring_TC = true; more(); while (true) @@ -1445,6 +1447,10 @@ static bool _teleport_player( bool allow_control, bool new_abyss_area ) if (large_change) handle_interrupted_swap(true); + // Might identify unknown ring of teleport control. + if (check_ring_TC) + maybe_id_ring_TC(); + return !is_controlled; } |