fixed Dragon generation on geometries which include triangles

This commit is contained in:
Zeno Rogue 2018-08-28 19:06:30 +02:00
parent 6482e22219
commit 5f74f2f641
1 changed files with 1 additions and 1 deletions

View File

@ -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) {