• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

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


Commit MetaInfo

Revision42fb15a9d8b029a915321ff72f1bb010f181eae8 (tree)
Time2018-12-04 19:09:39
AuthorDeskull <deskull@user...>
CommiterDeskull

Log Message

[Refactor] #37353 コメント整理 / Refactor comments.

Change Summary

Incremental Difference

--- a/src/floor-generate.c
+++ b/src/floor-generate.c
@@ -1170,8 +1170,7 @@ static void battle_gen(void)
11701170
11711171 for(i = 0; i < 4; i++)
11721172 {
1173- place_monster_aux(0, p_ptr->y + 8 + (i/2)*4, p_ptr->x - 2 + (i%2)*4, battle_mon[i],
1174- (PM_NO_KAGE | PM_NO_PET));
1173+ place_monster_aux(0, p_ptr->y + 8 + (i/2)*4, p_ptr->x - 2 + (i%2)*4, battle_mon[i], (PM_NO_KAGE | PM_NO_PET));
11751174 set_friendly(&m_list[cave[p_ptr->y+8+(i/2)*4][p_ptr->x-2+(i%2)*4].m_idx]);
11761175 }
11771176 for(i = 1; i < m_max; i++)
@@ -1194,7 +1193,6 @@ static void quest_gen(void)
11941193 {
11951194 POSITION x, y;
11961195
1197-
11981196 /* Start with perm walls */
11991197 for (y = 0; y < cur_hgt; y++)
12001198 {
@@ -1251,8 +1249,7 @@ static bool level_gen(cptr *why)
12511249 level_height = randint1(MAX_HGT/SCREEN_HGT);
12521250 level_width = randint1(MAX_WID/SCREEN_WID);
12531251 }
1254- while ((level_height == MAX_HGT/SCREEN_HGT) &&
1255- (level_width == MAX_WID/SCREEN_WID));
1252+ while ((level_height == MAX_HGT/SCREEN_HGT) && (level_width == MAX_WID/SCREEN_WID));
12561253 }
12571254
12581255 cur_hgt = level_height * SCREEN_HGT;
@@ -1280,12 +1277,7 @@ static bool level_gen(cptr *why)
12801277 /* Make a dungeon */
12811278 if (!cave_gen())
12821279 {
1283-#ifdef JP
1284-*why = "ダンジョン生成に失敗";
1285-#else
1286- *why = "could not place player";
1287-#endif
1288-
1280+ *why = _("ダンジョン生成に失敗", "could not place player");
12891281 return FALSE;
12901282 }
12911283 else return TRUE;
@@ -1353,26 +1345,12 @@ void clear_cave(void)
13531345 for (x = 0; x < MAX_WID; x++)
13541346 {
13551347 cave_type *c_ptr = &cave[y][x];
1356-
1357- /* No flags */
13581348 c_ptr->info = 0;
1359-
1360- /* No features */
13611349 c_ptr->feat = 0;
1362-
1363- /* No objects */
13641350 c_ptr->o_idx = 0;
1365-
1366- /* No monsters */
13671351 c_ptr->m_idx = 0;
1368-
1369- /* No special */
13701352 c_ptr->special = 0;
1371-
1372- /* No mimic */
13731353 c_ptr->mimic = 0;
1374-
1375- /* No flow */
13761354 c_ptr->cost = 0;
13771355 c_ptr->dist = 0;
13781356 c_ptr->when = 0;
@@ -1467,10 +1445,7 @@ void generate_cave(void)
14671445
14681446 if (why) msg_format(_("生成やり直し(%s)", "Generation restarted (%s)"), why);
14691447
1470- /* Wipe the objects */
14711448 wipe_o_list();
1472-
1473- /* Wipe the monsters */
14741449 wipe_m_list();
14751450 }
14761451
Show on old repository browser