diff options
author | DracoOmega <draco_omega@live.com> | 2014-03-06 13:54:23 -0330 |
---|---|---|
committer | DracoOmega <draco_omega@live.com> | 2014-03-06 13:54:23 -0330 |
commit | 114b3f6fa9dbbb4479d53c9c9f4c3d07a1bf9212 (patch) | |
tree | 3a222abee2d2096a99c81dbe98cfdc6837978c12 /crawl-ref/source/shopping.cc | |
parent | b23e0ecd077f61d6652820e4c5a3be320db405ba (diff) | |
download | crawl-ref-114b3f6fa9dbbb4479d53c9c9f4c3d07a1bf9212.tar.gz crawl-ref-114b3f6fa9dbbb4479d53c9c9f4c3d07a1bf9212.zip |
Move a variable inside the only #ifdef that now references it
To avoid unused variable warnings in non-tile builds.
Diffstat (limited to 'crawl-ref/source/shopping.cc')
-rw-r--r-- | crawl-ref/source/shopping.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/crawl-ref/source/shopping.cc b/crawl-ref/source/shopping.cc index 325c093da1..09293d0f49 100644 --- a/crawl-ref/source/shopping.cc +++ b/crawl-ref/source/shopping.cc @@ -497,13 +497,12 @@ static string _shop_print_stock(const vector<int>& stock, if (shop_item_unknown(item)) item_name += " (unknown)"; - const int cols = get_number_of_cols(); - cprintf("%4d gold %s", gp_value, item_name.c_str()); si.add_item(item, gp_value); #ifdef USE_TILE_LOCAL + const int cols = get_number_of_cols(); tmp = new TextItem(); tmp->set_highlight_colour(WHITE); tmp->set_text(""); // will print bounding box around formatted text |