From 3ba101e847eae30dd5abf9661b252e6e5ebf87ff Mon Sep 17 00:00:00 2001 From: Vsevolod Kozlov Date: Sun, 8 Nov 2009 21:25:26 +0300 Subject: Replace uses of player_can_swim with player::can_swim. --- crawl-ref/source/player.cc | 9 ++------- crawl-ref/source/player.h | 1 - 2 files changed, 2 insertions(+), 8 deletions(-) (limited to 'crawl-ref') diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc index bdabea3756..5ed601881c 100644 --- a/crawl-ref/source/player.cc +++ b/crawl-ref/source/player.cc @@ -383,11 +383,6 @@ bool move_player_to_grid( const coord_def& p, bool stepped, bool allow_shift, return (true); } -bool player_can_swim() -{ - return (you.can_swim()); -} - bool is_feat_dangerous(dungeon_feature_type grid) { return (!you.airborne() @@ -421,7 +416,7 @@ bool player_in_hell(void) bool player_likes_water(bool permanently) { - return (player_can_swim() || (!permanently && beogh_water_walk())); + return (you.can_swim() || (!permanently && beogh_water_walk())); } bool player_in_bat_form() @@ -3206,7 +3201,7 @@ int check_stealth(void) // Merfolk can sneak up on monsters underwater -- bwr if (you.species == SP_MERFOLK) stealth += 50; - else if ( !player_can_swim() && !you.extra_balanced() ) + else if ( !you.can_swim() && !you.extra_balanced() ) stealth /= 2; // splashy-splashy } else if (player_mutation_level(MUT_HOOVES)) diff --git a/crawl-ref/source/player.h b/crawl-ref/source/player.h index b6dd64644b..f5e12a5ed5 100644 --- a/crawl-ref/source/player.h +++ b/crawl-ref/source/player.h @@ -610,7 +610,6 @@ int player_spirit_shield(bool calc_unid = true); bool player_can_smell(); bool player_likes_chunks(bool permanently = false); -bool player_can_swim(); bool player_likes_water(bool permanently = false); int player_mutation_level(mutation_type mut); -- cgit v1.2.3-54-g00ecf