summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/misc.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-01-05 00:27:23 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-01-05 00:27:23 +0000
commit19155f1f85058ef9d65d11e60c63cc69c36d4e8a (patch)
tree8acc2eb35c21a5a7b3eaf6751f6864f06d358ed2 /crawl-ref/source/misc.cc
parent58e79e19494a18803fc90684ef6062f4d32d68ec (diff)
downloadcrawl-ref-19155f1f85058ef9d65d11e60c63cc69c36d4e8a.tar.gz
crawl-ref-19155f1f85058ef9d65d11e60c63cc69c36d4e8a.zip
Remove invalid check for 2 or more levels of the acute vision mutation,
as it only has one level. Also remove some unneeded whitespace. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3193 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/misc.cc')
-rw-r--r--crawl-ref/source/misc.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/crawl-ref/source/misc.cc b/crawl-ref/source/misc.cc
index ae0c9b404e..4ae926d439 100644
--- a/crawl-ref/source/misc.cc
+++ b/crawl-ref/source/misc.cc
@@ -150,7 +150,7 @@ void turn_corpse_into_chunks( item_def &item )
break;
}
- move_item_to_grid( &o, item.x, item.y );
+ move_item_to_grid( &o, item.x, item.y );
}
} // end place_chunks()
@@ -181,10 +181,10 @@ void search_around( bool only_adjacent )
// don't exclude own square; may be levitating
if (dist == 0)
++dist;
-
+
// making this harsher by removing the old +1
int effective = you.skills[SK_TRAPS_DOORS] / (2*dist - 1);
-
+
if (grd[srx][sry] == DNGN_SECRET_DOOR &&
random2(17) <= effective)
{
@@ -197,7 +197,7 @@ void search_around( bool only_adjacent )
random2(17) <= effective)
{
i = trap_at_xy(srx, sry);
-
+
if (i != -1)
{
grd[srx][sry] = trap_category(env.trap[i].type);