From 2eb5aea0c045caea4a260213b85f6cfa64c815ee Mon Sep 17 00:00:00 2001 From: ennewalker Date: Sat, 27 Sep 2008 15:43:18 +0000 Subject: 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 --- crawl-ref/source/tilereg.cc | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'crawl-ref/source/tilereg.cc') 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); } -- cgit v1.2.3-54-g00ecf