summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tilereg-map.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-map.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-map.cc')
-rw-r--r--crawl-ref/source/tilereg-map.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/crawl-ref/source/tilereg-map.cc b/crawl-ref/source/tilereg-map.cc
index a1c87ff03a..ed28e90b47 100644
--- a/crawl-ref/source/tilereg-map.cc
+++ b/crawl-ref/source/tilereg-map.cc
@@ -272,7 +272,7 @@ int MapRegion::handle_mouse(MouseEvent &event)
{
// Start autotravel, or give an appropriate message.
do_explore_cmd();
- return (CK_MOUSE_CMD);
+ return CK_MOUSE_CMD;
}
else
{
@@ -280,7 +280,7 @@ int MapRegion::handle_mouse(MouseEvent &event)
if (cmd != CK_MOUSE_CMD)
process_command((command_type) cmd);
- return (CK_MOUSE_CMD);
+ return CK_MOUSE_CMD;
}
}
else if (event.button == MouseEvent::RIGHT)
@@ -295,16 +295,16 @@ int MapRegion::handle_mouse(MouseEvent &event)
m_far_view = false;
tiles.load_dungeon(crawl_view.vgrdc);
}
- return (0);
+ return 0;
default:
- return (0);
+ return 0;
}
}
bool MapRegion::update_tip_text(std::string& tip)
{
if (mouse_control::current_mode() != MOUSE_MODE_COMMAND)
- return (false);
+ return false;
tip = "[L-Click] Travel / [R-Click] View";
if (!player_in_branch(BRANCH_LABYRINTH)
@@ -313,7 +313,7 @@ bool MapRegion::update_tip_text(std::string& tip)
{
tip += "\n[Shift + L-Click] Autoexplore";
}
- return (true);
+ return true;
}
#endif