diff options
author | ennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-09-27 15:43:18 +0000 |
---|---|---|
committer | ennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-09-27 15:43:18 +0000 |
commit | 2eb5aea0c045caea4a260213b85f6cfa64c815ee (patch) | |
tree | b44c176482fe786d286e91791a9a223c30407253 /crawl-ref | |
parent | 55fd4d9fe704f53be2f1c530195d72715836ece9 (diff) | |
download | crawl-ref-2eb5aea0c045caea4a260213b85f6cfa64c815ee.tar.gz crawl-ref-2eb5aea0c045caea4a260213b85f6cfa64c815ee.zip |
Changing the offset of item counts to make them more readable.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7041 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref')
-rw-r--r-- | crawl-ref/source/tilereg.cc | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/crawl-ref/source/tilereg.cc b/crawl-ref/source/tilereg.cc index 95f99f1f7d..8146aea9fe 100644 --- a/crawl-ref/source/tilereg.cc +++ b/crawl-ref/source/tilereg.cc @@ -1261,7 +1261,8 @@ void InventoryRegion::pack_verts() num = 999; const int offset_amount = TILE_X/4; - int offset = 0; + int offset_x = 3; + int offset_y = 1; int help = num; int c100 = help/100; @@ -1269,19 +1270,19 @@ void InventoryRegion::pack_verts() if (c100) { - add_quad_char('0' + c100, x, y, offset, 0); - offset += offset_amount; + add_quad_char('0' + c100, x, y, offset_x, offset_y); + offset_x += offset_amount; } int c10 = help/10; if (c10 || c100) { - add_quad_char('0' + c10, x, y, offset, 0); - offset += offset_amount; + add_quad_char('0' + c10, x, y, offset_x, offset_y); + offset_x += offset_amount; } int c1 = help % 10; - add_quad_char('0' + c1, x, y, offset, 0); + add_quad_char('0' + c1, x, y, offset_x, offset_y); } |