• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

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


Commit MetaInfo

Revision969b87602561ecb63e7727d1f7c7a79fa3ae9577 (tree)
Time2019-02-05 13:22:22
AuthorDeskull <deskull@user...>
CommiterDeskull

Log Message

[Fix] #37353 wild.cの型の置換による警告修正。 / Fix warning for type replacement in wild.c.

Change Summary

Incremental Difference

--- a/src/wild.c
+++ b/src/wild.c
@@ -156,7 +156,7 @@ static void perturb_point_end(FEAT_IDX x1, FEAT_IDX x2, FEAT_IDX x3, POSITION xm
156156 * need to be converted to features.
157157 * </pre>
158158 */
159-static void plasma_recursive(POSITION x1, POSITION y1, POSITION x2, POSITION y2, POSITION depth_max, POSITION rough)
159+static void plasma_recursive(POSITION x1, POSITION y1, POSITION x2, POSITION y2, FEAT_IDX depth_max, FEAT_IDX rough)
160160 {
161161 /* Find middle */
162162 POSITION xmid = (x2 - x1) / 2 + x1;
@@ -208,7 +208,7 @@ static void generate_wilderness_area(int terrain, u32b seed, bool border, bool c
208208 {
209209 POSITION x1, y1;
210210 int table_size = sizeof(terrain_table[0]) / sizeof(s16b);
211- int roughness = 1; /* The roughness of the level. */
211+ FEAT_IDX roughness = 1; /* The roughness of the level. */
212212 u32b state_backup[4];
213213
214214 /* Unused */
Show on old repository browser