OSDN Git Service

モンスターのプレイヤー追跡コードで、もはや使われていないflow_nが残っていたため、forget_flow()が動いていなかったのを修正。
authorhabu <habu@0568b783-4c39-0410-ac80-bf13821ea2a2>
Fri, 6 Sep 2002 08:38:12 +0000 (08:38 +0000)
committerhabu <habu@0568b783-4c39-0410-ac80-bf13821ea2a2>
Fri, 6 Sep 2002 08:38:12 +0000 (08:38 +0000)
src/cave.c

index 2240ced..b312762 100644 (file)
@@ -4350,26 +4350,6 @@ void update_view(void)
 
 
 
-
-
-
-/*
- * Hack -- provide some "speed" for the "flow" code
- * This entry is the "current index" for the "when" field
- * Note that a "when" value of "zero" means "not used".
- *
- * Note that the "cost" indexes from 1 to 127 are for
- * "old" data, and from 128 to 255 are for "new" data.
- *
- * This means that as long as the player does not "teleport",
- * then any monster up to 128 + MONSTER_FLOW_DEPTH will be
- * able to track down the player, and in general, will be
- * able to track down either the player or a position recently
- * occupied by the player.
- */
-static int flow_n = 0;
-
-
 /*
  * Hack -- forget the "flow" information
  */
@@ -4377,9 +4357,6 @@ void forget_flow(void)
 {
        int x, y;
 
-       /* Nothing to forget */
-       if (!flow_n) return;
-
        /* Check the entire dungeon */
        for (y = 0; y < cur_hgt; y++)
        {
@@ -4391,9 +4368,6 @@ void forget_flow(void)
                        cave[y][x].when = 0;
                }
        }
-
-       /* Start over */
-       flow_n = 0;
 }