From 5c42c2f8e5977f842b9b7ea4d8e7d815afbd79bc Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Wed, 31 Jul 2019 10:55:09 +0200 Subject: [PATCH] sandworms no longer explode in 3D --- game.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/game.cpp b/game.cpp index 78c754ce..a0574a32 100644 --- a/game.cpp +++ b/game.cpp @@ -4541,6 +4541,9 @@ void moveWorm(cell *c) { if(mounted) mf ^= (MF_MOUNT | MF_PATHDIST); + // without this, in 3D geometries, Sandworms explode because no land around them is generated yet + forCellCM(c2, c) setdist(c2, 8, c); + int dir = pickMoveDirection(c, mf); if(c->wall == waRose) {