• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

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


Commit MetaInfo

Revisionbf1525443dcf338f7d1c08a0d05a81e9a2f9767e (tree)
Time2019-02-26 23:14:21
Authordeskull <deskull@user...>
Commiterdeskull

Log Message

[Refactor] #37353 型の置換。 / Type replacement. (POSITION)

Change Summary

Incremental Difference

--- a/src/floor-generate.c
+++ b/src/floor-generate.c
@@ -1604,8 +1604,8 @@ bool build_tunnel(POSITION row1, POSITION col1, POSITION row2, POSITION col2)
16041604 if (is_solid_bold(y, x)) continue;
16051605
16061606 /* Accept this location */
1607- row1 = (POSITION)tmp_row;
1608- col1 = (POSITION)tmp_col;
1607+ row1 = tmp_row;
1608+ col1 = tmp_col;
16091609
16101610 /* Save the wall location */
16111611 if (dun->wall_n < WALL_MAX)
@@ -2096,8 +2096,8 @@ bool build_tunnel2(POSITION x1, POSITION y1, POSITION x2, POSITION y2, int type,
20962096 /* Save the door location */
20972097 if (dun->door_n < DOOR_MAX)
20982098 {
2099- dun->door[dun->door_n].y = (POSITION)y3;
2100- dun->door[dun->door_n].x = (POSITION)x3;
2099+ dun->door[dun->door_n].y = y3;
2100+ dun->door[dun->door_n].x = x3;
21012101 dun->door_n++;
21022102 }
21032103 else return FALSE;
@@ -2114,9 +2114,9 @@ bool build_tunnel2(POSITION x1, POSITION y1, POSITION x2, POSITION y2, int type,
21142114 else
21152115 {
21162116 /* tunnel through walls */
2117- if (build_tunnel2(x1, y1, (POSITION)x3, (POSITION)y3, type, cutoff))
2117+ if (build_tunnel2(x1, y1, x3, y3, type, cutoff))
21182118 {
2119- retval = build_tunnel2((POSITION)x3, (POSITION)y3, x2, y2, type, cutoff);
2119+ retval = build_tunnel2(x3, y3, x2, y2, type, cutoff);
21202120 firstsuccede = TRUE;
21212121 }
21222122 else
Show on old repository browser