OSDN Git Service
(root)
/
hengbandforosx
/
hengbandosx.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
869b830
)
[Fix] 店舗買取価格が上限を突破する #1252
author
Habu
<habu1010+github@gmail.com>
Sat, 10 Jul 2021 18:49:47 +0000
(
03:49
+0900)
committer
Habu
<habu1010+github@gmail.com>
Sat, 10 Jul 2021 18:49:47 +0000
(
03:49
+0900)
コミット
22752b61bfe7b68f306ffb8d4331c17e8845ff70
で
買取価格を制限するコードもろとも削除してしまっている。
該当の処理を復活させる。
src/store/sell-order.cpp
patch
|
blob
|
history
diff --git
a/src/store/sell-order.cpp
b/src/store/sell-order.cpp
index
5c390f6
..
164cc3d
100644
(file)
--- a/
src/store/sell-order.cpp
+++ b/
src/store/sell-order.cpp
@@
-53,6
+53,7
@@
static std::optional<PRICE> prompt_to_sell(player_type *player_ptr, object_type
{
auto price_ask = price_item(player_ptr, o_ptr, ot_ptr->inflate, true);
+ price_ask = std::min(price_ask, ot_ptr->max_cost);
price_ask *= o_ptr->number;
concptr s = format(_("売値 $%ld で売りますか?", "Do you sell for $%ld? "), static_cast<long>(price_ask));
if (get_check_strict(player_ptr, s, CHECK_DEFAULT_Y)) {