• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

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


Commit MetaInfo

Revisionf4a3e552c5b6ed79268655bc00b2a6308b2fd313 (tree)
Time2019-05-15 23:53:40
Authordeskull <deskull@user...>
Commiterdeskull

Log Message

[Refactor] #37353 coin_type を object2.c/object.h へ移動.

Change Summary

Incremental Difference

--- a/src/externs.h
+++ b/src/externs.h
@@ -59,7 +59,6 @@ extern s16b running;
5959 extern s16b signal_count;
6060
6161 extern bool get_com_no_macros;
62-extern OBJECT_SUBTYPE_VALUE coin_type;
6362
6463 extern bool repair_monsters;
6564 extern bool repair_objects;
--- a/src/object.h
+++ b/src/object.h
@@ -154,6 +154,8 @@ extern void object_copy(object_type *o_ptr, object_type *j_ptr);
154154 #define AM_FORBID_CHEST 0x00000020 /*!< 箱からさらに箱が出現することを抑止する */
155155 extern void apply_magic(object_type *o_ptr, DEPTH lev, BIT_FLAGS mode);
156156
157+extern OBJECT_SUBTYPE_VALUE coin_type;
158+
157159 extern bool make_object(object_type *j_ptr, BIT_FLAGS mode);
158160 extern void place_object(POSITION y, POSITION x, BIT_FLAGS mode);
159161 extern bool make_gold(object_type *j_ptr);
--- a/src/object2.c
+++ b/src/object2.c
@@ -4447,6 +4447,8 @@ void place_object(POSITION y, POSITION x, BIT_FLAGS mode)
44474447 }
44484448
44494449
4450+OBJECT_SUBTYPE_VALUE coin_type; /* Hack -- force coin type */
4451+
44504452 /*!
44514453 * @brief 生成階に応じた財宝オブジェクトの生成を行う。
44524454 * Make a treasure object
--- a/src/variable.c
+++ b/src/variable.c
@@ -34,8 +34,6 @@ s16b signal_count; /* Hack -- Count interupts */
3434
3535 bool get_com_no_macros = FALSE; /* Expand macros in "get_com" or not */
3636
37-OBJECT_SUBTYPE_VALUE coin_type; /* Hack -- force coin type */
38-
3937 bool repair_monsters; /* Hack -- optimize detect monsters */
4038 bool repair_objects; /* Hack -- optimize detect objects */
4139
Show on old repository browser