summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/shopping.cc
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2007-07-14 13:53:27 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2007-07-14 13:53:27 +0000
commitd0de96b23ce1d6e838c43a8dcaa5b5705e3cc027 (patch)
tree9e1e716677b819817766986f7a125708942666fe /crawl-ref/source/shopping.cc
parentfc767d9b3b123f6bdf37e30b78200c06f042b570 (diff)
downloadcrawl-ref-d0de96b23ce1d6e838c43a8dcaa5b5705e3cc027.tar.gz
crawl-ref-d0de96b23ce1d6e838c43a8dcaa5b5705e3cc027.zip
Minor type-safety.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1862 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/shopping.cc')
-rw-r--r--crawl-ref/source/shopping.cc13
1 files changed, 5 insertions, 8 deletions
diff --git a/crawl-ref/source/shopping.cc b/crawl-ref/source/shopping.cc
index 003a418d1b..d3124f835f 100644
--- a/crawl-ref/source/shopping.cc
+++ b/crawl-ref/source/shopping.cc
@@ -293,22 +293,19 @@ static void in_a_shop( int shopidx )
}
}
-bool shoptype_identifies_stock(int shoptype)
+bool shoptype_identifies_stock(shop_type type)
{
return
- shoptype != SHOP_WEAPON_ANTIQUE &&
- shoptype != SHOP_ARMOUR_ANTIQUE &&
- shoptype != SHOP_GENERAL_ANTIQUE;
+ type != SHOP_WEAPON_ANTIQUE &&
+ type != SHOP_ARMOUR_ANTIQUE &&
+ type != SHOP_GENERAL_ANTIQUE;
}
static void shop_print( const char *shoppy, int sh_lines )
{
gotoxy(1, sh_lines);
-
cprintf("%s", shoppy);
-
- for (int i = strlen(shoppy); i < 80; i++)
- cprintf(" ");
+ clear_to_end_of_line();
}
static void more3()