summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/effects.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-01 21:47:10 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-01 21:47:10 +0000
commit83ca5514f458bd3309aaa0fe42741aebb6dd2cab (patch)
tree4880ec30e2ecc0c8b3c87de65bf9b4a2789579b8 /crawl-ref/source/effects.cc
parentca398a84ec096c87596397c75e4eb923d3410611 (diff)
downloadcrawl-ref-83ca5514f458bd3309aaa0fe42741aebb6dd2cab.tar.gz
crawl-ref-83ca5514f458bd3309aaa0fe42741aebb6dd2cab.zip
Add still more minor cosmetic fixes.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8088 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/effects.cc')
-rw-r--r--crawl-ref/source/effects.cc10
1 files changed, 3 insertions, 7 deletions
diff --git a/crawl-ref/source/effects.cc b/crawl-ref/source/effects.cc
index c07a8bec86..8607e4fa55 100644
--- a/crawl-ref/source/effects.cc
+++ b/crawl-ref/source/effects.cc
@@ -3585,7 +3585,7 @@ void update_corpses(double elapsedTime)
const long rot_time = static_cast<long>(elapsedTime / 20.0);
- for (int c = 0; c < MAX_ITEMS; c++)
+ for (int c = 0; c < MAX_ITEMS; ++c)
{
item_def &it = mitm[c];
@@ -3601,13 +3601,11 @@ void update_corpses(double elapsedTime)
if (rot_time >= it.special && !is_being_butchered(it))
{
if (it.base_type == OBJ_FOOD)
- {
destroy_item(c);
- }
else
{
if (it.sub_type == CORPSE_SKELETON
- || !mons_skeleton( it.plus ))
+ || !mons_skeleton(it.plus))
{
destroy_item(c);
}
@@ -3616,16 +3614,14 @@ void update_corpses(double elapsedTime)
}
}
else
- {
it.special -= rot_time;
- }
}
int fountain_checks = static_cast<int>(elapsedTime / 1000.0);
if (x_chance_in_y(static_cast<int>(elapsedTime) % 1000, 1000))
fountain_checks += 1;
- // dry fountains may start flowing again
+ // Dry fountains may start flowing again.
if (fountain_checks > 0)
{
for (rectangle_iterator ri(1); ri; ++ri)