diff options
author | Enne Walker <enne.walker@gmail.com> | 2010-05-29 16:24:10 -0400 |
---|---|---|
committer | Enne Walker <enne.walker@gmail.com> | 2010-05-30 08:50:37 -0400 |
commit | ca6e3ae38efee3e21d22494140094d71344cdac4 (patch) | |
tree | 2f40b5085806fbf3c765f705071f69a8221e76ae /crawl-ref/source/tilereg-tab.h | |
parent | 575cfb8db1e87084ae13b9799f74a3b6be75c0c8 (diff) | |
download | crawl-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-tab.h')
-rw-r--r-- | crawl-ref/source/tilereg-tab.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/tilereg-tab.h b/crawl-ref/source/tilereg-tab.h index ebc8922bd3..0409311f97 100644 --- a/crawl-ref/source/tilereg-tab.h +++ b/crawl-ref/source/tilereg-tab.h @@ -25,7 +25,7 @@ public: TAB_OFS_MAX }; - void set_tab_region(int idx, GridRegion *reg, int tile_tab); + void set_tab_region(int idx, GridRegion *reg, tileidx_t tile_tab); GridRegion *get_tab_region(int idx); void activate_tab(int idx); int active_tab() const; @@ -58,7 +58,7 @@ protected: struct TabInfo { GridRegion *reg; - int tile_tab; + tileidx_t tile_tab; int ofs_y; int min_y; int max_y; |