summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tilereg-dgn.h
diff options
context:
space:
mode:
authorEnne Walker <enne.walker@gmail.com>2010-05-29 16:24:10 -0400
committerEnne Walker <enne.walker@gmail.com>2010-05-30 08:50:37 -0400
commitca6e3ae38efee3e21d22494140094d71344cdac4 (patch)
tree2f40b5085806fbf3c765f705071f69a8221e76ae /crawl-ref/source/tilereg-dgn.h
parent575cfb8db1e87084ae13b9799f74a3b6be75c0c8 (diff)
downloadcrawl-ref-ca6e3ae38efee3e21d22494140094d71344cdac4.tar.gz
crawl-ref-ca6e3ae38efee3e21d22494140094d71344cdac4.zip
Use tileidx_t for tile indices. Also, cleanup.
This new type defines to unsigned int, but it cleans up a lot of the int/unsigned int/short confusion all over the codebase for tile indices. This commit also cleans up tiles code to use coord_def more and to change function signatures to pass const refs and non-const pointers.
Diffstat (limited to 'crawl-ref/source/tilereg-dgn.h')
-rw-r--r--crawl-ref/source/tilereg-dgn.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/tilereg-dgn.h b/crawl-ref/source/tilereg-dgn.h
index eee1933c5b..97a4e47060 100644
--- a/crawl-ref/source/tilereg-dgn.h
+++ b/crawl-ref/source/tilereg-dgn.h
@@ -56,7 +56,7 @@ protected:
void draw_minibars();
int get_buffer_index(const coord_def &gc);
- void to_screen_coords(const coord_def &gc, coord_def& pc) const;
+ void to_screen_coords(const coord_def &gc, coord_def *pc) const;
crawl_view_buffer m_vbuf;
int m_cx_to_gx;
@@ -69,7 +69,7 @@ protected:
struct tile_overlay
{
coord_def gc;
- int idx;
+ tileidx_t idx;
};
std::vector<tile_overlay> m_overlays;
};