diff options
author | Enne Walker <enne.walker@gmail.com> | 2010-06-06 23:19:57 -0400 |
---|---|---|
committer | Enne Walker <enne.walker@gmail.com> | 2010-06-08 21:36:24 -0400 |
commit | 2d900bb4c548f29a9308557e00ed283b654ec916 (patch) | |
tree | 5865f40a08d0ded5f56cc66897fc32dac896406b /crawl-ref/source/tilepick.h | |
parent | b4373cee1630e934a5b4a5a237ae6ea316477931 (diff) | |
download | crawl-ref-2d900bb4c548f29a9308557e00ed283b654ec916.tar.gz crawl-ref-2d900bb4c548f29a9308557e00ed283b654ec916.zip |
Properly init missing tile info from show_type.
This also removes the now uneeded (and entirely broken) tileidx_unseen
function. Instead, when loading saves that don't have a tile tag, use
show_type from the map_knowledge to determine what the player can see.
Diffstat (limited to 'crawl-ref/source/tilepick.h')
-rw-r--r-- | crawl-ref/source/tilepick.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/tilepick.h b/crawl-ref/source/tilepick.h index df673d58ca..d4275f6d40 100644 --- a/crawl-ref/source/tilepick.h +++ b/crawl-ref/source/tilepick.h @@ -15,10 +15,12 @@ struct cloud_struct; class coord_def; class item_def; class monsters; +struct show_type; // Tile index lookup from Crawl data. tileidx_t tileidx_feature(const coord_def &gc); tileidx_t tileidx_out_of_bounds(int branch); +void tileidx_from_show(tileidx_t *fg, tileidx_t *bg, const show_type &show); void tileidx_out_of_los(tileidx_t *fg, tileidx_t *bg, const coord_def& gc); tileidx_t tileidx_monster(const monsters *mon); @@ -39,8 +41,6 @@ tileidx_t tileidx_corpse_brand(const item_def &item); tileidx_t get_clean_map_idx(tileidx_t tile_idx); tileidx_t tileidx_unseen_flag(const coord_def &gc); -void tileidx_unseen(tileidx_t *fg, tileidx_t *bg, screen_buffer_t ch, - const coord_def& gc); // Return the level of enchantment as an int. None is 0, Randart is 4. |