Skip to content

Commit

Permalink
Fix build error in shop name generator
Browse files Browse the repository at this point in the history
  • Loading branch information
chucksellick committed Aug 15, 2024
1 parent 20d1ff2 commit 218c492
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crawl-ref/source/shopping.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1569,8 +1569,8 @@ pair<string, string> generate_shop_name(shop_type type, int shop_level, bool goz
// depending on how it was generated, so it can get up to 54 with Gozag.
// We can generate some pretty succinct names so let's start at 16 and go up to 70
// at max (any more than this would cause display issues anyway).
const uint target_max = 20 + shop_level;
const uint target_min = 20 - shop_level / 3;
const int target_max = 20 + shop_level;
const int target_min = 20 - shop_level / 3;
const size_t target_length = random_range(target_min, target_max);
const bool fancy = shop_level >= 20; // Orc shops will qualify as "fancy"
string key = shop_type_name(type) + " shop name";
Expand Down

0 comments on commit 218c492

Please sign in to comment.