diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-26 10:39:39 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-26 10:39:39 +0000 |
commit | 61cae4a761c2f72cda44ae269c7007b37a0c14a7 (patch) | |
tree | fec8ec71ca7ca6eebd9d48881bc5ee3fe27d04c1 /crawl-ref/source/travel.cc | |
parent | d4acdf4a6a4b73607d58714a66efd372674adb56 (diff) | |
download | crawl-ref-61cae4a761c2f72cda44ae269c7007b37a0c14a7.tar.gz crawl-ref-61cae4a761c2f72cda44ae269c7007b37a0c14a7.zip |
Misc. minor cleanups. (Yes, a huge amount of them but still...)
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6146 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/travel.cc')
-rw-r--r-- | crawl-ref/source/travel.cc | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/crawl-ref/source/travel.cc b/crawl-ref/source/travel.cc index d91adee0a1..cc4136719c 100644 --- a/crawl-ref/source/travel.cc +++ b/crawl-ref/source/travel.cc @@ -654,9 +654,9 @@ bool is_travelable_stair(dungeon_feature_type gridc) case DNGN_RETURN_FROM_TOMB: case DNGN_RETURN_FROM_SWAMP: case DNGN_RETURN_FROM_SHOALS: - return true; + return (true); default: - return false; + return (false); } } @@ -673,9 +673,9 @@ bool is_gate(dungeon_feature_type gridc) case DNGN_TRANSIT_PANDEMONIUM: case DNGN_ENTER_PORTAL_VAULT: case DNGN_EXIT_PORTAL_VAULT: - return true; + return (true); default: - return false; + return (false); } } @@ -1975,11 +1975,11 @@ static bool _is_known_branch_id(int branch) { // The main dungeon is always known. if (branch == BRANCH_MAIN_DUNGEON) - return true; + return (true); // If we're in the branch, it darn well is known. if (you.where_are_you == branch) - return true; + return (true); // The Vestibule is special: there are no stairs to it, just a // portal @@ -3331,9 +3331,9 @@ bool LevelInfo::is_known_branch(unsigned char branch) const { for (int i = 0, count = stairs.size(); i < count; ++i) if (stairs[i].destination.id.branch == branch) - return true; + return (true); - return false; + return (false); } void LevelInfo::save(writer& outf) const @@ -3600,9 +3600,9 @@ bool TravelCache::is_known_branch(unsigned char branch) const std::map<level_id, LevelInfo>::const_iterator i = levels.begin(); for ( ; i != levels.end(); ++i) if (i->second.is_known_branch(branch)) - return true; + return (true); - return false; + return (false); } void TravelCache::save(writer& outf) const |