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-grid.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-grid.h')
-rw-r--r-- | crawl-ref/source/tilereg-grid.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/tilereg-grid.h b/crawl-ref/source/tilereg-grid.h index 3ecfceafa8..e335e4ec5b 100644 --- a/crawl-ref/source/tilereg-grid.h +++ b/crawl-ref/source/tilereg-grid.h @@ -16,7 +16,7 @@ public: InventoryTile(); // tile index - int tile; + tileidx_t tile; // mitm/you.inv idx (depends on flag & TILEI_FLAG_FLOOR) int idx; // quantity of this item (0-999 valid, >999 shows as 999, <0 shows nothing) |