summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tilepick.h
diff options
context:
space:
mode:
authorFlorian Diebold <flodiebold@gmail.com>2011-12-01 22:12:51 +0100
committerFlorian Diebold <flodiebold@gmail.com>2011-12-01 23:11:48 +0100
commita974ddbca26c65f6d293be9c968991e2696ea244 (patch)
tree4aa7f7e3ad7f3d0786763d843213fe774410ccdd /crawl-ref/source/tilepick.h
parent30efafb7cff94fb53cd9117f4cdea8ea4829428e (diff)
downloadcrawl-ref-a974ddbca26c65f6d293be9c968991e2696ea244.tar.gz
crawl-ref-a974ddbca26c65f6d293be9c968991e2696ea244.zip
Add more cloud data to map_knowledge; make tilepick.cc use it instead of the actual cloud_struct.
This adds the cloud tile and the value of cloud.decay/20, clipped to the range 0-3, to the map_knowledge, and organizes all cloud-related data into a new cloud_info struct. Both of these are required for the tile picking code. (Doesn't introduce a new minor tag, so saves from the previous commit will crash.)
Diffstat (limited to 'crawl-ref/source/tilepick.h')
-rw-r--r--crawl-ref/source/tilepick.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/tilepick.h b/crawl-ref/source/tilepick.h
index a91055fbf0..2be1f814f8 100644
--- a/crawl-ref/source/tilepick.h
+++ b/crawl-ref/source/tilepick.h
@@ -11,7 +11,7 @@
#include "tiledef_defines.h"
struct bolt;
-struct cloud_struct;
+struct cloud_info;
struct coord_def;
struct item_def;
class monster;
@@ -31,7 +31,7 @@ tileidx_t tileidx_item(const item_def &item);
tileidx_t tileidx_item_throw(const item_def &item, int dx, int dy);
tileidx_t tileidx_known_base_item(tileidx_t label);
-tileidx_t tileidx_cloud(const cloud_struct &cl, bool disturbance = false);
+tileidx_t tileidx_cloud(const cloud_info &cl, bool disturbance = false);
tileidx_t tileidx_bolt(const bolt &bolt);
tileidx_t tileidx_zap(int colour);
tileidx_t tileidx_spell(const spell_type spell);