From 9824343f3d467f15f7faa4be9919325b72067e69 Mon Sep 17 00:00:00 2001 From: Bardur Arantsson Date: Tue, 14 Apr 2015 06:39:21 +0200 Subject: Fix bug in calculation of quantity range when buying items The quantity range would be calculated such as if the price were 110% of the actual price, and so the player might be refused purchase of, say, an it cost 100 and the player had less than 110 gold. (It *would* have subtracted the correct amount, but the player was just refused.) --- src/store.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/store.cc') diff --git a/src/store.cc b/src/store.cc index 92dfbfeb..4a384b06 100644 --- a/src/store.cc +++ b/src/store.cc @@ -2193,7 +2193,7 @@ void store_purchase(void) } else { - q = p_ptr->au / (best + (best / 10)); + q = p_ptr->au / best; } if (o_ptr->number < q) q = o_ptr->number; -- cgit v1.2.3