OSDN Git Service

幻覚時にただの地形が1/256でランダムな文字に変わって見えるコードが上書き代入で無効になっていたので, 有効になるように修正. 幻覚時の難易度増加につながるので...
author_nothere <_nothere@0568b783-4c39-0410-ac80-bf13821ea2a2>
Sun, 14 Apr 2002 17:40:41 +0000 (17:40 +0000)
committer_nothere <_nothere@0568b783-4c39-0410-ac80-bf13821ea2a2>
Sun, 14 Apr 2002 17:40:41 +0000 (17:40 +0000)
src/cave.c

index 36ab79c..a14f048 100644 (file)
@@ -1316,13 +1316,6 @@ void map_info(int y, int x, byte *ap, char *cp)
                }
        }
 
-       /* Hack -- rare random hallucination, except on outer dungeon walls */
-       if (p_ptr->image && (c_ptr->feat < FEAT_PERM_SOLID) && !randint0(256))
-       {
-               /* Hallucinate */
-               image_random(ap, cp);
-       }
-
 #ifdef USE_TRANSPARENCY
        /* Save the terrain info for the transparency effects */
        (*tap) = a;
@@ -1333,6 +1326,13 @@ void map_info(int y, int x, byte *ap, char *cp)
        (*ap) = a;
        (*cp) = c;
 
+       /* Hack -- rare random hallucination, except on outer dungeon walls */
+       if (p_ptr->image && (c_ptr->feat < FEAT_PERM_SOLID) && !randint0(256))
+       {
+               /* Hallucinate */
+               image_random(ap, cp);
+       }
+
        /* Objects */
        for (this_o_idx = c_ptr->o_idx; this_o_idx; this_o_idx = next_o_idx)
        {