diff options
author | Brendan Hickey <brendan@bhickey.net> | 2012-09-12 17:15:29 -0700 |
---|---|---|
committer | Brendan Hickey <brendan@bhickey.net> | 2012-12-30 19:06:12 -0800 |
commit | 108d301ec8ca16a945a2cdf94a9db5274492497c (patch) | |
tree | ae72239e3f0facb94b8b9e499f983fad9ea588b3 /crawl-ref/source/abyss.h | |
parent | ff2e4c5a2be7c94349b5fa7ae57076a6422976a4 (diff) | |
download | crawl-ref-108d301ec8ca16a945a2cdf94a9db5274492497c.tar.gz crawl-ref-108d301ec8ca16a945a2cdf94a9db5274492497c.zip |
Bound Abyss shifts
Convert abyss depth into an int, rip up all the phase logic (sorry).
Each procedural generator declares a changepoint, a lower bound estimate
on where the terrain type can change. This way, we can partially
recompute the abyss without experiencing aliasing.
Diffstat (limited to 'crawl-ref/source/abyss.h')
-rw-r--r-- | crawl-ref/source/abyss.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/crawl-ref/source/abyss.h b/crawl-ref/source/abyss.h index 196529a154..d2382f203f 100644 --- a/crawl-ref/source/abyss.h +++ b/crawl-ref/source/abyss.h @@ -17,9 +17,10 @@ struct abyss_state { coord_def major_coord; uint32_t seed; - double phase; - double depth; + uint32_t phase; + uint32_t depth; }; + void abyss_morph(double duration); void push_features_to_abyss(); |