OSDN Git Service

[Refactor] #37353 コメント整理 / Refactor comments.
authorDeskull <deskull@users.sourceforge.jp>
Sun, 25 Nov 2018 13:24:46 +0000 (22:24 +0900)
committerDeskull <deskull@users.sourceforge.jp>
Sun, 25 Nov 2018 13:24:46 +0000 (22:24 +0900)
src/load.c
src/save.c
src/util.c

index 061f285..eb589ff 100644 (file)
@@ -1481,13 +1481,9 @@ static void rd_options(void)
        BIT_FLAGS flag[8];
        BIT_FLAGS mask[8];
 
-
-       /*** Oops ***/
-
        /* Ignore old options */
        strip_bytes(16);
 
-
        /*** Special info */
 
        /* Read "delay_factor" */
index c9de5f7..ce028f1 100644 (file)
  * Some "local" parameters, used to help write savefiles
  */
 
-static FILE     *fff;           /* Current save "file" */
-
-static byte     xor_byte;       /* Simple encryption */
-
-static u32b     v_stamp = 0L;   /* A simple "checksum" on the actual values */
-static u32b     x_stamp = 0L;   /* A simple "checksum" on the encoded bytes */
+static FILE *fff;           /* Current save "file" */
+static byte xor_byte;       /* Simple encryption */
+static u32b v_stamp = 0L;   /* A simple "checksum" on the actual values */
+static u32b x_stamp = 0L;   /* A simple "checksum" on the encoded bytes */
 
 
 
@@ -351,7 +349,6 @@ static void wr_lore(MONRACE_IDX r_idx)
        wr_u32b(r_ptr->r_flags6);
        wr_u32b(r_ptr->r_flagsr);
 
-
        /* Monster limit per level */
        wr_byte((byte_hack)r_ptr->max_num);
 
@@ -381,7 +378,7 @@ static void wr_xtra(KIND_OBJECT_IDX k_idx)
 
 
 /*!
- * @brief 店舗情報を書き込む / Write a "store" record
+ * @brief セーブデータに店舗情報を書き込む / Write a "store" record
  * @param st_ptr 店舗情報の参照ポインタ
  * @return なし
  */
@@ -417,26 +414,20 @@ static void wr_store(store_type *st_ptr)
 
 
 /*!
- * @brief 乱数情報を書き込む / Write RNG state
- * @return なし
+ * @brief セーブデータに乱数情報を書き込む / Write RNG state
+ * @return 常に0(成功を返す) 
  */
 static errr wr_randomizer(void)
 {
        int i;
-
-       /* Zero */
        wr_u16b(0);
-
-       /* Place */
        wr_u16b(Rand_place);
 
-       /* State */
        for (i = 0; i < RAND_DEG; i++)
        {
                wr_u32b(Rand_state[i]);
        }
 
-       /* Success */
        return (0);
 }
 
index 9be0b61..8f8d5f1 100644 (file)
@@ -438,9 +438,7 @@ FILE *my_fopen_temp(char *buf, int max)
 errr my_fgets(FILE *fff, char *buf, huge n)
 {
        huge i = 0;
-
        char *s;
-
        char tmp[1024];
 
        /* Read a line */
@@ -529,9 +527,7 @@ errr my_fgets(FILE *fff, char *buf, huge n)
 
 /*
  * Hack -- replacement for "fputs()"
- *
  * Dump a string, plus a newline, to a file
- *
  * Process internal weirdness?
  */
 errr my_fputs(FILE *fff, cptr buf, huge n)