diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-01-25 18:11:54 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-01-25 18:11:54 +0000 |
commit | 32a6373c7a8072bfcb4567417f82f700084b6ab8 (patch) | |
tree | 248900b93f0f79c36123dc92364ccf9b0db3bcee /crawl-ref/source/shopping.cc | |
parent | 0136740f19467e681f934718d109748458fa49c6 (diff) | |
download | crawl-ref-32a6373c7a8072bfcb4567417f82f700084b6ab8.tar.gz crawl-ref-32a6373c7a8072bfcb4567417f82f700084b6ab8.zip |
Fix collision between gotoxy(int,int,int) and DOS djgpp gotoxy().
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3337 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/shopping.cc')
-rw-r--r-- | crawl-ref/source/shopping.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/crawl-ref/source/shopping.cc b/crawl-ref/source/shopping.cc index b6c5002d3c..2d1985664f 100644 --- a/crawl-ref/source/shopping.cc +++ b/crawl-ref/source/shopping.cc @@ -86,7 +86,7 @@ static void list_shop_keys(const std::string &purchasable) { char buf[200]; const int numlines = get_number_of_lines(); - gotoxy(1, numlines - 1); + cgotoxy(1, numlines - 1); std::string pkeys = purchase_keys(purchasable); if (!pkeys.empty()) @@ -99,7 +99,7 @@ static void list_shop_keys(const std::string &purchasable) formatted_string fs = formatted_string::parse_string(buf); fs.cprintf("%*s", get_number_of_cols() - fs.length() - 1, ""); fs.display(); - gotoxy(1, numlines); + cgotoxy(1, numlines); fs = formatted_string::parse_string( "[<w>?</w>/<w>*</w>] Inventory " @@ -148,7 +148,7 @@ static std::string shop_print_stock( const std::vector<int>& stock, const int gp_value = shop_item_value(mitm[stock[i]], shop.greed, id); const bool can_afford = (you.gold >= gp_value); - gotoxy(1, i+1); + cgotoxy(1, i+1); const char c = i + 'a'; if (can_afford) purchasable += c; @@ -310,14 +310,14 @@ bool shoptype_identifies_stock(shop_type type) static void shop_print( const char *shoppy, int sh_lines ) { - gotoxy(1, sh_lines, GOTO_CRT); + cgotoxy(1, sh_lines, GOTO_CRT); cprintf("%s", shoppy); clear_to_end_of_line(); } static void more3() { - gotoxy(70, 20, GOTO_CRT); + cgotoxy(70, 20, GOTO_CRT); cprintf("-more-"); get_ch(); return; |