summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spl-cast.cc
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2008-07-23 20:32:37 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2008-07-23 20:32:37 +0000
commit6f00e679d1f90041599c50c3cc86ab4e499c9ba1 (patch)
tree2e1ceeed3d328f639166d0ca53dddbd6fba6cdcf /crawl-ref/source/spl-cast.cc
parent0b1e914465f3e3f1f4c73f63cf2346c3f2253861 (diff)
downloadcrawl-ref-6f00e679d1f90041599c50c3cc86ab4e499c9ba1.tar.gz
crawl-ref-6f00e679d1f90041599c50c3cc86ab4e499c9ba1.zip
More cleanups and fixes.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6648 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/spl-cast.cc')
-rw-r--r--crawl-ref/source/spl-cast.cc24
1 files changed, 12 insertions, 12 deletions
diff --git a/crawl-ref/source/spl-cast.cc b/crawl-ref/source/spl-cast.cc
index 368efb48bf..3833cbf483 100644
--- a/crawl-ref/source/spl-cast.cc
+++ b/crawl-ref/source/spl-cast.cc
@@ -599,7 +599,7 @@ bool cast_a_spell()
return (false);
}
- if (silenced(you.x_pos, you.y_pos))
+ if (silenced(you.pos()))
{
mpr("You cannot cast spells when silenced!");
crawl_state.zero_turns_taken();
@@ -2377,7 +2377,7 @@ static void _miscast_enchantment(int severity, const char* cause)
canned_msg(MSG_NOTHING_HAPPENS);
break;
case 9:
- if (!silenced(you.x_pos, you.y_pos))
+ if (!silenced(you.pos()))
mpr("You hear something strange.", MSGCH_SOUND);
else if (you.attribute[ATTR_TRANSFORMATION] != TRAN_AIR)
mpr("Your skull vibrates slightly.");
@@ -2606,7 +2606,7 @@ static void _miscast_summoning(int severity, const char* cause)
mpr("Shadowy shapes form in the air around you, then vanish.");
break;
case 1:
- if (!silenced(you.x_pos, you.y_pos))
+ if (!silenced(you.pos()))
mpr("You hear strange voices.", MSGCH_SOUND);
else
mpr("You feel momentarily dizzy.");
@@ -2802,7 +2802,7 @@ static void _miscast_divination(int severity, const char* cause)
mpr("Weird images run through your mind.");
break;
case 1:
- if (!silenced(you.x_pos, you.y_pos))
+ if (!silenced(you.pos()))
mpr("You hear strange voices.", MSGCH_SOUND);
else
mpr("Your nose twitches.");
@@ -2927,7 +2927,7 @@ static void _miscast_necromancy(int severity, const char* cause)
canned_msg(MSG_NOTHING_HAPPENS);
break;
case 1:
- if (!silenced(you.x_pos, you.y_pos))
+ if (!silenced(you.pos()))
mpr("You hear strange and distant voices.", MSGCH_SOUND);
else
mpr("You feel homesick.");
@@ -3242,7 +3242,7 @@ static void _miscast_fire(int severity, const char* cause)
canned_msg(MSG_NOTHING_HAPPENS);
break;
case 9:
- if (!silenced(you.x_pos, you.y_pos))
+ if (!silenced(you.pos()))
mpr("You hear a sizzling sound.", MSGCH_SOUND);
else
mpr("You feel like you have heartburn.");
@@ -3381,7 +3381,7 @@ static void _miscast_ice(int severity, const char* cause)
canned_msg(MSG_NOTHING_HAPPENS);
break;
case 9:
- if (!silenced(you.x_pos, you.y_pos))
+ if (!silenced(you.pos()))
mpr("You hear a crackling sound.", MSGCH_SOUND);
else
mpr("A snowflake lands on your nose.");
@@ -3484,7 +3484,7 @@ static void _miscast_earth(int severity, const char* cause)
mpr("You feel a surge of energy from the ground.");
break;
case 4:
- if (!silenced(you.x_pos, you.y_pos))
+ if (!silenced(you.pos()))
mpr("You hear a distant rumble.", MSGCH_SOUND);
else
mpr("You sympathise with the stones.");
@@ -3604,7 +3604,7 @@ static void _miscast_air(int severity, const char* cause)
mpr("You are blasted with air!");
break;
case 7:
- if (!silenced(you.x_pos, you.y_pos))
+ if (!silenced(you.pos()))
mpr("You hear a whooshing sound.", MSGCH_SOUND);
else if (player_can_smell())
mpr("You smell ozone.");
@@ -3617,7 +3617,7 @@ static void _miscast_air(int severity, const char* cause)
canned_msg(MSG_NOTHING_HAPPENS);
break;
case 9:
- if (!silenced(you.x_pos, you.y_pos))
+ if (!silenced(you.pos()))
mpr("You hear a crackling sound.", MSGCH_SOUND);
else if (player_can_smell())
mpr("You smell something musty.");
@@ -3637,7 +3637,7 @@ static void _miscast_air(int severity, const char* cause)
break;
case 1:
mprf("The wind %s around you!",
- silenced(you.x_pos, you.y_pos) ? "whips" : "howls");
+ silenced(you.pos()) ? "whips" : "howls");
break;
}
break;
@@ -3727,7 +3727,7 @@ static void _miscast_poison(int severity, const char* cause)
canned_msg(MSG_NOTHING_HAPPENS);
break;
case 9:
- if (!silenced(you.x_pos, you.y_pos))
+ if (!silenced(you.pos()))
mpr("You hear a slurping sound.", MSGCH_SOUND);
else if (you.species != SP_MUMMY)
mpr("You taste almonds.");