summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/item_use.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-07-05 21:11:56 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-07-05 21:11:56 +0000
commit67fd9a8cc159a1853da013ba188692a450de7a87 (patch)
treef961c2b023d5ea9b039182cbae50d502affd3794 /crawl-ref/source/item_use.cc
parent4cee10a22cfe7c4456a821916820a6e2ae023ca0 (diff)
downloadcrawl-ref-67fd9a8cc159a1853da013ba188692a450de7a87.tar.gz
crawl-ref-67fd9a8cc159a1853da013ba188692a450de7a87.zip
Use MOUSE_MODE_MORE during the ring swap prompt, so mouse clicks are
ignored instead of taking zero turn actions or crashing the game. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10102 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/item_use.cc')
-rw-r--r--crawl-ref/source/item_use.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/crawl-ref/source/item_use.cc b/crawl-ref/source/item_use.cc
index 49c6496b15..9266f445cd 100644
--- a/crawl-ref/source/item_use.cc
+++ b/crawl-ref/source/item_use.cc
@@ -3278,6 +3278,10 @@ static int _prompt_ring_to_remove(int new_ring)
mprf(" < or %s", left->name(DESC_INVENTORY).c_str());
mprf(" > or %s", right->name(DESC_INVENTORY).c_str());
+ // Deactivate choice from tile inventory.
+ // FIXME: We need to be able to get the choice (item letter)
+ // *without* the choice taking action by itself!
+ mouse_control mc(MOUSE_MODE_MORE);
int c;
do
c = getch();