• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

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


Commit MetaInfo

Revisionb9dbf9080ca20c23b6b18e72d12a86651adc589f (tree)
Time2019-05-08 23:28:26
Authordeskull <deskull@user...>
Commiterdeskull

Log Message

[Refactor] #37353 max_e_idx を object-ego.c/h へ移動.

Change Summary

Incremental Difference

--- a/src/externs.h
+++ b/src/externs.h
@@ -159,7 +159,7 @@ extern bool (*get_obj_num_hook)(KIND_OBJECT_IDX k_idx);
159159
160160 extern VAULT_IDX max_v_idx;
161161
162-extern EGO_IDX max_e_idx;
162+
163163 extern int init_flags;
164164 extern int highscore_fd;
165165 extern bool can_save;
--- a/src/object-ego.c
+++ b/src/object-ego.c
@@ -7,3 +7,8 @@
77 ego_item_type *e_info;
88 char *e_name;
99 char *e_text;
10+
11+/*
12+ * Maximum number of ego-items in e_info.txt
13+ */
14+EGO_IDX max_e_idx;
--- a/src/object-ego.h
+++ b/src/object-ego.h
@@ -31,6 +31,7 @@ struct ego_item_type
3131 IDX act_idx; /* Activative ability index */
3232 };
3333
34+extern EGO_IDX max_e_idx;
3435 extern ego_item_type *e_info;
3536 extern char *e_name;
3637 extern char *e_text;
--- a/src/variable.c
+++ b/src/variable.c
@@ -367,11 +367,6 @@ bool (*get_obj_num_hook)(KIND_OBJECT_IDX k_idx);
367367 VAULT_IDX max_v_idx;
368368
369369 /*
370- * Maximum number of ego-items in e_info.txt
371- */
372-EGO_IDX max_e_idx;
373-
374-/*
375370 * Flags for initialization
376371 */
377372 int init_flags;
Show on old repository browser