summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/invent.cc
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-03-06 05:56:50 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-03-06 05:56:50 +0000
commitbd1d91f4b91afaf8dd80c329c78b775f43382b87 (patch)
tree38c0cfd9f7268aa1eeb200e19996f63bf24f62b9 /crawl-ref/source/invent.cc
parent7cd64c37c6b36806e99e92e59581447c9b91560a (diff)
downloadcrawl-ref-bd1d91f4b91afaf8dd80c329c78b775f43382b87.tar.gz
crawl-ref-bd1d91f4b91afaf8dd80c329c78b775f43382b87.zip
Kill hard tabs.
redraw_dexterity now implies redraw_evasion. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@987 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/invent.cc')
-rw-r--r--crawl-ref/source/invent.cc24
1 files changed, 12 insertions, 12 deletions
diff --git a/crawl-ref/source/invent.cc b/crawl-ref/source/invent.cc
index 34e708f276..78d0aacf20 100644
--- a/crawl-ref/source/invent.cc
+++ b/crawl-ref/source/invent.cc
@@ -719,16 +719,16 @@ static int digit_to_index( char digit, operation_types oper ) {
for ( i = 0; i < ENDOFPACK; ++i ) {
if (is_valid_item(you.inv[i])) {
- const std::string& r(you.inv[i].inscription);
- /* note that r.size() is unsigned */
- for ( j = 0; j + 2 < r.size(); ++j ) {
- if ( r[j] == '@' &&
- (r[j+1] == iletter || r[j+1] == '*') &&
- r[j+2] == digit ) {
- return i;
- }
- }
- }
+ const std::string& r(you.inv[i].inscription);
+ /* note that r.size() is unsigned */
+ for ( j = 0; j + 2 < r.size(); ++j ) {
+ if ( r[j] == '@' &&
+ (r[j+1] == iletter || r[j+1] == '*') &&
+ r[j+2] == digit ) {
+ return i;
+ }
+ }
+ }
}
return -1;
}
@@ -743,8 +743,8 @@ static bool has_warning_inscription(const item_def& item,
const std::string& r(item.inscription);
for ( i = 0; i + 1 < r.size(); ++i )
- if (r[i] == '!' && (r[i+1] == iletter || r[i+1] == '*'))
- return true;
+ if (r[i] == '!' && (r[i+1] == iletter || r[i+1] == '*'))
+ return true;
return false;
}