summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/menu.cc
diff options
context:
space:
mode:
authorChris Oelmueller <chris.oelmueller@gmail.com>2013-05-21 03:49:21 +0200
committerNeil Moore <neil@s-z.org>2013-05-21 02:26:55 -0400
commit4d033e72b35918d3451952ab2ae9a57cd3f02b8a (patch)
treec7431ccb8640c2bd23bcb80977657ec42d4a160e /crawl-ref/source/menu.cc
parent6d6c93c5d497bc74821d2629d26894b29b1af683 (diff)
downloadcrawl-ref-4d033e72b35918d3451952ab2ae9a57cd3f02b8a.tar.gz
crawl-ref-4d033e72b35918d3451952ab2ae9a57cd3f02b8a.zip
Whitespace fixes
Diffstat (limited to 'crawl-ref/source/menu.cc')
-rw-r--r--crawl-ref/source/menu.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/crawl-ref/source/menu.cc b/crawl-ref/source/menu.cc
index 3f88fc1708..defdb1be97 100644
--- a/crawl-ref/source/menu.cc
+++ b/crawl-ref/source/menu.cc
@@ -599,8 +599,8 @@ bool Menu::process_key(int keyin)
{
if (num > 999)
num = -1;
- num = (num == -1)? keyin - '0' :
- num * 10 + keyin - '0';
+ num = (num == -1) ? keyin - '0' :
+ num * 10 + keyin - '0';
}
select_items(keyin, num);
@@ -725,7 +725,7 @@ string Menu::get_select_count_string(int count) const
if (count)
{
snprintf(buf, sizeof buf, " (%d item%s) ", count,
- (count > 1? "s" : ""));
+ (count > 1 ? "s" : ""));
}
return string(buf);
}
@@ -804,7 +804,7 @@ void Menu::select_items(int key, int qty)
// We have to use some hackery to handle items that share
// the same hotkey (as for pickup when there's a stack of
- // >52 items). If there are duplicate hotkeys, the items
+ // >52 items). If there are duplicate hotkeys, the items
// are usually separated by at least a page, so we should
// only select the item on the current page. This is why we
// use two loops, and check to see if we've matched an item
@@ -1181,7 +1181,7 @@ void Menu::select_item_index(int idx, int qty, bool draw_cursor)
void Menu::select_index(int index, int qty)
{
- int si = index == -1? first_entry : index;
+ int si = index == -1 ? first_entry : index;
if (index == -1)
{
@@ -1277,7 +1277,7 @@ int Menu::item_colour(int, const MenuEntry *entry) const
if (highlighter)
icol = highlighter->entry_colour(entry);
- return (icol == -1? entry->colour : icol);
+ return (icol == -1 ? entry->colour : icol);
}
void Menu::draw_title()
@@ -1723,7 +1723,7 @@ void column_composer::add_formatted(int ncol,
compose_formatted_column(newlines,
col.lines,
- margin == -1? col.margin : margin);
+ margin == -1 ? col.margin : margin);
col.lines += newlines.size();