From 5f74f2f6414ba387117842d84cf4db47a99733dc Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Tue, 28 Aug 2018 19:06:30 +0200 Subject: [PATCH] fixed Dragon generation on geometries which include triangles --- landgen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/landgen.cpp b/landgen.cpp index b806a464..9c39c849 100644 --- a/landgen.cpp +++ b/landgen.cpp @@ -805,7 +805,7 @@ void giantLandSwitch(cell *c, int d, cell *from) { c2 = c3; c2->monst = moDragonTail; c2->hitpoints = 1; - i = j + 2 + hrand(c2->type-3); + i = j + (c2->type <= 3 ? 1 : 2 + hrand(c2->type-3)); i %= c2->type; } if(isize(dragon) < 5 || isize(dragon) < dragonlength / 2) {