summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tilereg-cmd.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-cmd.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-cmd.cc')
-rw-r--r--crawl-ref/source/tilereg-cmd.cc24
1 files changed, 12 insertions, 12 deletions
diff --git a/crawl-ref/source/tilereg-cmd.cc b/crawl-ref/source/tilereg-cmd.cc
index 4aaabe206d..d1217d7180 100644
--- a/crawl-ref/source/tilereg-cmd.cc
+++ b/crawl-ref/source/tilereg-cmd.cc
@@ -49,7 +49,7 @@ int CommandRegion::handle_mouse(MouseEvent &event)
{
unsigned int item_idx;
if (!place_cursor(event, item_idx))
- return (0);
+ return 0;
if (event.button == MouseEvent::LEFT)
{
@@ -58,7 +58,7 @@ int CommandRegion::handle_mouse(MouseEvent &event)
process_command(cmd);
return CK_MOUSE_CMD;
}
- return (0);
+ return 0;
}
bool CommandRegion::update_tab_tip_text(std::string &tip, bool active)
@@ -68,17 +68,17 @@ bool CommandRegion::update_tab_tip_text(std::string &tip, bool active)
tip = make_stringf("%s%s",
prefix, "Execute commands");
- return (true);
+ return true;
}
bool CommandRegion::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 command_type cmd = (command_type) m_items[item_idx].idx;
tip = make_stringf("[L-Click] %s",
@@ -92,22 +92,22 @@ bool CommandRegion::update_tip_text(std::string& tip)
// tip += "\n[R-Click] Describe";
- return (true);
+ return true;
}
bool CommandRegion::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;
@@ -116,7 +116,7 @@ bool CommandRegion::update_alt_text(std::string &alt)
const std::string desc = get_command_description(cmd, false);
if (desc.empty())
- return (false);
+ return false;
describe_info inf;
inf.body << desc;
@@ -125,7 +125,7 @@ bool CommandRegion::update_alt_text(std::string &alt)
process_description<alt_desc_proc>(proc, inf);
proc.get_string(alt);
- return (true);
+ return true;
}
void CommandRegion::pack_buffers()
@@ -172,7 +172,7 @@ static bool _command_not_applicable(const command_type cmd, bool safe)
case CMD_USE_ABILITY:
return (your_talents(false).empty());
default:
- return (false);
+ return false;
}
}