OSDN Git Service

[Fix] #41061 clangの警告修正ミスに対応. / Respond to clang warning correction mistakes.
authordeskull <deskull@users.sourceforge.jp>
Fri, 8 Jan 2021 10:36:12 +0000 (19:36 +0900)
committerdeskull <deskull@users.sourceforge.jp>
Fri, 8 Jan 2021 10:36:12 +0000 (19:36 +0900)
src/floor/wild.c

index 0611c4f..c546a42 100644 (file)
@@ -353,7 +353,7 @@ static void generate_area(player_type *player_ptr, POSITION y, POSITION x, bool
     }
 
     bool is_winner = wilderness[y][x].entrance > 0;
-    is_winner &= (!wilderness[y][x].town != 0);
+    is_winner &= (wilderness[y][x].town == 0);
     bool is_wild_winner = (d_info[wilderness[y][x].entrance].flags1 & DF1_WINNER) == 0;
     is_winner &= ((current_world_ptr->total_winner != 0) || is_wild_winner);
     if (!is_winner)