summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/dbg-util.cc
diff options
context:
space:
mode:
authorJohanna Ploog <j-p-e-g@users.sourceforge.net>2010-12-05 18:30:33 +0100
committerJohanna Ploog <j-p-e-g@users.sourceforge.net>2010-12-05 18:54:32 +0100
commit8f1bec83804ba9b27dd13d9257e0b43afdb5132a (patch)
tree106ff67c7f239465608b5c03815bb3d9364ffa8a /crawl-ref/source/dbg-util.cc
parenta77d2aa694c002a3793df8c2e3cf810f3731615a (diff)
downloadcrawl-ref-8f1bec83804ba9b27dd13d9257e0b43afdb5132a.tar.gz
crawl-ref-8f1bec83804ba9b27dd13d9257e0b43afdb5132a.zip
Ctrl-mouseclick asks for quantity for drop/pickup.
I decided to reuse debug_prompt_for_int() for this purpose.
Diffstat (limited to 'crawl-ref/source/dbg-util.cc')
-rw-r--r--crawl-ref/source/dbg-util.cc26
1 files changed, 0 insertions, 26 deletions
diff --git a/crawl-ref/source/dbg-util.cc b/crawl-ref/source/dbg-util.cc
index ebef7008da..1b0529f508 100644
--- a/crawl-ref/source/dbg-util.cc
+++ b/crawl-ref/source/dbg-util.cc
@@ -22,32 +22,6 @@
#include "skills2.h"
#include "spl-util.h"
-//---------------------------------------------------------------
-//
-// debug_prompt_for_int
-//
-// If nonneg, then it returns a non-negative number or -1 on fail
-// If !nonneg, then it returns an integer, and 0 on fail
-//
-//---------------------------------------------------------------
-int debug_prompt_for_int(const char *prompt, bool nonneg)
-{
- char specs[80];
-
- msgwin_get_line(prompt, specs, sizeof(specs));
-
- if (specs[0] == '\0')
- return (nonneg ? -1 : 0);
-
- char *end;
- int ret = strtol(specs, &end, 10);
-
- if (ret < 0 && nonneg || ret == 0 && end == specs)
- ret = (nonneg ? -1 : 0);
-
- return (ret);
-}
-
monster_type debug_prompt_for_monster(void)
{
char specs[80];