OSDN Git Service

[Refactor] #37353 coin_type を object2.c/object.h へ移動.
authordeskull <deskull@users.sourceforge.jp>
Wed, 15 May 2019 14:53:40 +0000 (23:53 +0900)
committerdeskull <deskull@users.sourceforge.jp>
Wed, 15 May 2019 14:53:40 +0000 (23:53 +0900)
src/externs.h
src/object.h
src/object2.c
src/variable.c

index da80df3..c6355e7 100644 (file)
@@ -59,7 +59,6 @@ extern s16b running;
 extern s16b signal_count;
 
 extern bool get_com_no_macros;
-extern OBJECT_SUBTYPE_VALUE coin_type;
 
 extern bool repair_monsters;
 extern bool repair_objects;
index 86f5fb3..70fdab1 100644 (file)
@@ -154,6 +154,8 @@ extern void object_copy(object_type *o_ptr, object_type *j_ptr);
 #define AM_FORBID_CHEST 0x00000020 /*!< \94 \82©\82ç\82³\82ç\82É\94 \82ª\8fo\8c»\82·\82é\82±\82Æ\82ð\97}\8e~\82·\82é */
 extern void apply_magic(object_type *o_ptr, DEPTH lev, BIT_FLAGS mode);
 
+extern OBJECT_SUBTYPE_VALUE coin_type;
+
 extern bool make_object(object_type *j_ptr, BIT_FLAGS mode);
 extern void place_object(POSITION y, POSITION x, BIT_FLAGS mode);
 extern bool make_gold(object_type *j_ptr);
index b24b28f..4f3d87b 100644 (file)
@@ -4447,6 +4447,8 @@ void place_object(POSITION y, POSITION x, BIT_FLAGS mode)
 }
 
 
+OBJECT_SUBTYPE_VALUE coin_type;        /* Hack -- force coin type */
+
 /*!
  * @brief 生成階に応じた財宝オブジェクトの生成を行う。
  * Make a treasure object
index f22de53..59db8cc 100644 (file)
@@ -34,8 +34,6 @@ s16b signal_count;            /* Hack -- Count interupts */
 
 bool get_com_no_macros = FALSE;        /* Expand macros in "get_com" or not */
 
-OBJECT_SUBTYPE_VALUE coin_type;        /* Hack -- force coin type */
-
 bool repair_monsters;  /* Hack -- optimize detect monsters */
 bool repair_objects;   /* Hack -- optimize detect objects */