summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/dgn-proclayouts.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2013-04-09 17:07:03 +0200
committerAdam Borowski <kilobyte@angband.pl>2013-04-09 17:07:03 +0200
commit78ee61a5221ec7e2c0433c92fae969f5afd4efa9 (patch)
treef455eeb67e3f7d87fb968d2536eeae72aa4497d0 /crawl-ref/source/dgn-proclayouts.cc
parent2444626377ca1e8d35a568eddd32340bed80e1de (diff)
downloadcrawl-ref-78ee61a5221ec7e2c0433c92fae969f5afd4efa9.tar.gz
crawl-ref-78ee61a5221ec7e2c0433c92fae969f5afd4efa9.zip
Fix a warning.
Diffstat (limited to 'crawl-ref/source/dgn-proclayouts.cc')
-rw-r--r--crawl-ref/source/dgn-proclayouts.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/dgn-proclayouts.cc b/crawl-ref/source/dgn-proclayouts.cc
index 894dfc66e8..186b6d2f1c 100644
--- a/crawl-ref/source/dgn-proclayouts.cc
+++ b/crawl-ref/source/dgn-proclayouts.cc
@@ -291,7 +291,7 @@ ForestLayout::operator()(const coord_def &p, const uint32_t offset) const
worley::noise_datum fn = tfunc.datum(p.x,p.y,offset);
// Split the id into some 8-bit numbers to use for randomness
- uint8_t rand[2] = { fn.id[0] >> 24, fn.id[0] >> 16 & 0x000000ff };
+ uint8_t rand[2] = { (uint8_t)(fn.id[0] >> 24), (uint8_t)(fn.id[0] >> 16) };
// , fn.id[0] >> 8 & 0x000000ff, fn.id[0] & 0x000000ff };
double diff = fn.distance[1]-fn.distance[0];