increased cave buffer offset (and adjusted graphics and amoeba logic)
[rocksndiamonds.git] / src / game_em / logic.c
index df027b63801af736538c29a95be9efd6956b3225..8bd29b3c4f9753145da0bf491c7721c1716298c5 100644 (file)
@@ -6334,8 +6334,8 @@ void logic_3(void)
 
   for (count = lev.amoeba_time; count--;)
   {
-    x = (random >> 10) % (CAVE_BUFFER_WIDTH - 2);
-    y = (random >> 20) % (CAVE_BUFFER_HEIGHT - 2);
+    x = CAVE_BUFFER_XOFFSET - 1 + (random >> 10) % CAVE_WIDTH;
+    y = CAVE_BUFFER_YOFFSET - 1 + (random >> 20) % CAVE_HEIGHT;
 
     Lamoeba(x, y);