summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/dgn-proclayouts.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2013-03-09 00:46:49 +0100
committerAdam Borowski <kilobyte@angband.pl>2013-03-09 21:00:22 +0100
commitb664766e0bb08e2e7c46fb662f21fcaaecafc6b1 (patch)
tree79e926c2c7cb60a11b9a9825fab0ddb05051711d /crawl-ref/source/dgn-proclayouts.cc
parent380d5887bd29218e618c7f07f611b40756aac9b8 (diff)
downloadcrawl-ref-b664766e0bb08e2e7c46fb662f21fcaaecafc6b1.tar.gz
crawl-ref-b664766e0bb08e2e7c46fb662f21fcaaecafc6b1.zip
Formatting fixes.
Diffstat (limited to 'crawl-ref/source/dgn-proclayouts.cc')
-rw-r--r--crawl-ref/source/dgn-proclayouts.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/crawl-ref/source/dgn-proclayouts.cc b/crawl-ref/source/dgn-proclayouts.cc
index 39b52b9a36..c291c21a93 100644
--- a/crawl-ref/source/dgn-proclayouts.cc
+++ b/crawl-ref/source/dgn-proclayouts.cc
@@ -220,7 +220,7 @@ dungeon_feature_type sanitize_feature(dungeon_feature_type feature, bool strict)
LevelLayout::LevelLayout(level_id id, uint32_t _seed, const ProceduralLayout &_layout) : seed(_seed), layout(_layout)
{
- if(!is_existing_level(id))
+ if (!is_existing_level(id))
{
for (rectangle_iterator ri(0); ri; ++ri)
grid(*ri) = DNGN_UNSEEN;
@@ -280,9 +280,7 @@ ClampLayout::operator()(const coord_def &p, const uint32_t offset) const
uint32_t cycle = offset / clamp;
uint32_t order = hash3(p.x, p.y, 0xDEADBEEF + cycle);
if (bursty)
- {
order &= hash3(p.x + 31, p.y - 37, 0x0DEFACED + cycle);
- }
order %= clamp;
uint32_t clamp_offset = (offset + order) / clamp * clamp;
ProceduralSample sample = layout(p, clamp_offset);