diff options
author | Raphael Langella <raphael.langella@gmail.com> | 2012-07-10 14:14:29 +0200 |
---|---|---|
committer | Raphael Langella <raphael.langella@gmail.com> | 2012-07-17 01:00:25 +0200 |
commit | a4184751df456850d7d5c312c54b62a427d06f3d (patch) | |
tree | 2c9886f5d8d00977c7b3ae939a0763b71876cc06 /crawl-ref/source/showsymb.cc | |
parent | 410924b6f8f920b2b3f2f0b06a79b14e70e2f874 (diff) | |
download | crawl-ref-a4184751df456850d7d5c312c54b62a427d06f3d.tar.gz crawl-ref-a4184751df456850d7d5c312c54b62a427d06f3d.zip |
Make the Shoals floor brown/yellow depending on height (wet sand).
Brown floor means that it turns to water at high tide (wet sand).
Yellow floor is dry, it stays sand at high tide.
Diffstat (limited to 'crawl-ref/source/showsymb.cc')
-rw-r--r-- | crawl-ref/source/showsymb.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/crawl-ref/source/showsymb.cc b/crawl-ref/source/showsymb.cc index 0825fd8d6c..d1052cd324 100644 --- a/crawl-ref/source/showsymb.cc +++ b/crawl-ref/source/showsymb.cc @@ -100,9 +100,11 @@ unsigned short _cell_feat_show_colour(const map_cell& cell, { const int height = dgn_height_at(loc); if (feat == DNGN_SHALLOW_WATER) - colour = height > SHT_SHORE ? LIGHTCYAN : CYAN; + colour = height > SHT_SHORE_LOW ? LIGHTCYAN : CYAN; if (feat == DNGN_DEEP_WATER) - colour = height > SHT_SHORE ? LIGHTBLUE : BLUE; + colour = height > SHT_SHORE_LOW ? LIGHTBLUE : BLUE; + if (feat == DNGN_FLOOR && height <= SHT_SHORE_HIGH) + colour = BROWN; } if (feat_has_solid_floor(feat) && !feat_is_water(feat) |