summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/player.cc
diff options
context:
space:
mode:
authorVsevolod Kozlov <zaba@thorium.homeunix.org>2009-11-05 19:42:01 +0300
committerRobert Vollmert <rvollmert@gmx.net>2009-11-05 18:50:57 +0100
commitde162132f702a4723cc9390d8c83baa012844161 (patch)
tree920b26fe8ea60d7d0225d59435f49f7e6e90d3d5 /crawl-ref/source/player.cc
parentcf225c256f67b33f96a04c243f7c88ba23168664 (diff)
downloadcrawl-ref-de162132f702a4723cc9390d8c83baa012844161.tar.gz
crawl-ref-de162132f702a4723cc9390d8c83baa012844161.zip
Replace uses of player_is_swimming with you.swimming.
Signed-off-by: Robert Vollmert <rvollmert@gmx.net>
Diffstat (limited to 'crawl-ref/source/player.cc')
-rw-r--r--crawl-ref/source/player.cc13
1 files changed, 4 insertions, 9 deletions
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc
index 43c6fedeae..e0a768146c 100644
--- a/crawl-ref/source/player.cc
+++ b/crawl-ref/source/player.cc
@@ -428,11 +428,6 @@ bool player_likes_water(bool permanently)
return (player_can_swim() || (!permanently && beogh_water_walk()));
}
-bool player_is_swimming()
-{
- return (you.swimming());
-}
-
bool player_in_bat_form()
{
return (you.attribute[ATTR_TRANSFORMATION] == TRAN_BAT);
@@ -692,7 +687,7 @@ bool you_tran_can_wear(int eq, bool check_mutation)
return (false);
if (eq == EQ_BOOTS
- && (player_is_swimming() && you.species == SP_MERFOLK
+ && (you.swimming() && you.species == SP_MERFOLK
|| player_mutation_level(MUT_HOOVES)
|| player_mutation_level(MUT_TALONS)))
{
@@ -1867,7 +1862,7 @@ int player_movement_speed(void)
{
int mv = 10;
- if (player_is_swimming())
+ if (you.swimming())
{
// This is swimming... so it doesn't make sense to really
// apply the other things (the mutation is "cover ground",
@@ -4051,7 +4046,7 @@ void display_char_status()
const int move_cost = (player_speed() * player_movement_speed()) / 10;
const bool water = player_in_water();
- const bool swim = player_is_swimming();
+ const bool swim = you.swimming();
const bool lev = you.airborne();
const bool fly = (you.flight_mode() == FL_FLY);
@@ -6173,7 +6168,7 @@ std::string player::foot_name(bool plural, bool *can_plural) const
str = "underbelly";
*can_plural = false;
}
- else if (this->species == SP_MERFOLK && player_is_swimming())
+ else if (this->species == SP_MERFOLK && you.swimming())
{
str = "tail";
*can_plural = false;