summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tilereg-skl.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2012-07-05 12:14:09 +0200
committerAdam Borowski <kilobyte@angband.pl>2012-07-05 12:14:09 +0200
commitc41419c4f47bbf0737d3fedf58128c835d2c4e3b (patch)
tree764ae18c107df39fd90af718922036bd245561ca /crawl-ref/source/tilereg-skl.cc
parentb80adef8882143cad34f3c8bcc9a8ccbd4440223 (diff)
downloadcrawl-ref-c41419c4f47bbf0737d3fedf58128c835d2c4e3b.tar.gz
crawl-ref-c41419c4f47bbf0737d3fedf58128c835d2c4e3b.zip
Drop parentheses around scalar values in "return".
Diffstat (limited to 'crawl-ref/source/tilereg-skl.cc')
-rw-r--r--crawl-ref/source/tilereg-skl.cc20
1 files changed, 10 insertions, 10 deletions
diff --git a/crawl-ref/source/tilereg-skl.cc b/crawl-ref/source/tilereg-skl.cc
index 21b85f6943..1e3592f317 100644
--- a/crawl-ref/source/tilereg-skl.cc
+++ b/crawl-ref/source/tilereg-skl.cc
@@ -57,7 +57,7 @@ int SkillRegion::handle_mouse(MouseEvent &event)
{
unsigned int item_idx;
if (!place_cursor(event, item_idx))
- return (0);
+ return 0;
const skill_type skill = (skill_type) m_items[item_idx].idx;
if (event.button == MouseEvent::LEFT)
@@ -92,7 +92,7 @@ int SkillRegion::handle_mouse(MouseEvent &event)
redraw_screen();
return CK_MOUSE_CMD;
}
- return (0);
+ return 0;
}
bool SkillRegion::update_tab_tip_text(std::string &tip, bool active)
@@ -101,17 +101,17 @@ bool SkillRegion::update_tab_tip_text(std::string &tip, bool active)
tip = make_stringf("%s%s", prefix, "Manage skills");
- return (true);
+ return true;
}
bool SkillRegion::update_tip_text(std::string& tip)
{
if (m_cursor == NO_CURSOR)
- return (false);
+ return false;
unsigned int item_idx = cursor_index();
if (item_idx >= m_items.size() || m_items[item_idx].empty())
- return (false);
+ return false;
const int flag = m_items[item_idx].flag;
if (flag & TILEI_FLAG_INVALID)
@@ -133,22 +133,22 @@ bool SkillRegion::update_tip_text(std::string& tip)
tip += "\n[R-Click] Describe";
- return (true);
+ return true;
}
bool SkillRegion::update_alt_text(std::string &alt)
{
if (m_cursor == NO_CURSOR)
- return (false);
+ return false;
unsigned int item_idx = cursor_index();
if (item_idx >= m_items.size() || m_items[item_idx].empty())
- return (false);
+ return false;
if (m_last_clicked_item >= 0
&& item_idx == (unsigned int) m_last_clicked_item)
{
- return (false);
+ return false;
}
int idx = m_items[item_idx].idx;
@@ -163,7 +163,7 @@ bool SkillRegion::update_alt_text(std::string &alt)
process_description<alt_desc_proc>(proc, inf);
proc.get_string(alt);
- return (true);
+ return true;
}
static int _get_aptitude_tile(const int apt)