diff options
author | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-07-14 13:53:27 +0000 |
---|---|---|
committer | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-07-14 13:53:27 +0000 |
commit | d0de96b23ce1d6e838c43a8dcaa5b5705e3cc027 (patch) | |
tree | 9e1e716677b819817766986f7a125708942666fe /crawl-ref/source/shopping.cc | |
parent | fc767d9b3b123f6bdf37e30b78200c06f042b570 (diff) | |
download | crawl-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.cc | 13 |
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() |