diff options
author | Enne Walker <enne.walker@gmail.com> | 2010-06-01 11:31:05 -0400 |
---|---|---|
committer | Enne Walker <enne.walker@gmail.com> | 2010-06-01 12:58:15 -0400 |
commit | 63cc52422890d554e57e565cd0606fcc0f7c930b (patch) | |
tree | e07871ec410e6438562b5a778eea89629686f3e7 /crawl-ref/source/tilemcache.h | |
parent | 1e2a717b8af68936fd127a95e2a108b13293b36a (diff) | |
download | crawl-ref-63cc52422890d554e57e565cd0606fcc0f7c930b.tar.gz crawl-ref-63cc52422890d554e57e565cd0606fcc0f7c930b.zip |
Replace mcache max tiles magic number with enum.
Diffstat (limited to 'crawl-ref/source/tilemcache.h')
-rw-r--r-- | crawl-ref/source/tilemcache.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/crawl-ref/source/tilemcache.h b/crawl-ref/source/tilemcache.h index 54c2d9a6a9..a4e0f99a80 100644 --- a/crawl-ref/source/tilemcache.h +++ b/crawl-ref/source/tilemcache.h @@ -44,7 +44,13 @@ public: void dec_ref() { m_ref_count--; ASSERT(m_ref_count >= 0); } int ref_count() { return m_ref_count; } - virtual unsigned int info(tile_draw_info *dinfo) const { return 0; } + enum + { + // The maximum number of values written in the info function. + MAX_INFO_COUNT = 3 + }; + + virtual int info(tile_draw_info *dinfo) const { return 0; } virtual const dolls_data *doll() const { return NULL; } virtual void construct(writer &th); |