• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

変愚蛮怒のメインリポジトリです


Commit MetaInfo

Revision66fb748f98d4d2fab83d5622643b7e38aef33a4f (tree)
Time2019-06-12 21:44:58
Authordeskull <deskull@user...>
Commiterdeskull

Log Message

[fix] #39077 price_item() の型と帰り値コメントを修正.

Change Summary

Incremental Difference

--- a/src/store.c
+++ b/src/store.c
@@ -2182,7 +2182,7 @@ static byte rgold_adj[MAX_RACES][MAX_RACES] =
21822182 * @param o_ptr 店舗に並べるオブジェクト構造体の参照ポインタ
21832183 * @param greed 店主の強欲度
21842184 * @param flip TRUEならば店主にとっての買取価格、FALSEなら売出価格を計算
2185- * @return なし
2185+ * @return アイテムの店舗価格
21862186 * @details
21872187 * <pre>
21882188 * This function takes into account the player's charisma, and the
@@ -2198,12 +2198,11 @@ static byte rgold_adj[MAX_RACES][MAX_RACES] =
21982198 * "greed" value is always something (?).
21992199 * </pre>
22002200 */
2201-static s32b price_item(object_type *o_ptr, int greed, bool flip)
2201+static PRICE price_item(object_type *o_ptr, int greed, bool flip)
22022202 {
2203- int factor;
2204- int adjust;
2205- s32b price;
2206-
2203+ int factor;
2204+ int adjust;
2205+ PRICE price;
22072206
22082207 /* Get the value of one of the items */
22092208 price = object_value(o_ptr);
@@ -2211,7 +2210,6 @@ static s32b price_item(object_type *o_ptr, int greed, bool flip)
22112210 /* Worthless items */
22122211 if (price <= 0) return (0L);
22132212
2214-
22152213 /* Compute the racial factor */
22162214 factor = rgold_adj[ot_ptr->owner_race][p_ptr->prace];
22172215
Show on old repository browser