OSDN Git Service

cave_set_feat関数導入で発生したearthquake関数のエンコードバグ(震源と全く違う位置での地形書き換え現象)を修正。
authoriks <iks@0568b783-4c39-0410-ac80-bf13821ea2a2>
Thu, 19 Sep 2002 08:42:22 +0000 (08:42 +0000)
committeriks <iks@0568b783-4c39-0410-ac80-bf13821ea2a2>
Thu, 19 Sep 2002 08:42:22 +0000 (08:42 +0000)
src/spells2.c

index 3a7a9b2..245f334 100644 (file)
@@ -5907,28 +5907,28 @@ msg_format("%^s
                                if (t < 20)
                                {
                                        /* Create granite wall */
-                                        cave_set_feat(yx, FEAT_WALL_EXTRA);
+                                        cave_set_feat(yy, xx, FEAT_WALL_EXTRA);
                                }
 
                                /* Quartz */
                                else if (t < 70)
                                {
                                        /* Create quartz vein */
-                                        cave_set_feat(yx, FEAT_QUARTZ);
+                                        cave_set_feat(yy, xx, FEAT_QUARTZ);
                                }
 
                                /* Magma */
                                else if (t < 100)
                                {
                                        /* Create magma vein */
-                                        cave_set_feat(yx, FEAT_MAGMA);
+                                        cave_set_feat(yy, xx, FEAT_MAGMA);
                                }
 
                                /* Floor */
                                else
                                {
                                        /* Create floor */
-                                        cave_set_feat(yx, floor_type[randint0(100)]);
+                                        cave_set_feat(yy, xx, floor_type[randint0(100)]);
                                }
                        }
                }