1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-20 11:54:48 +00:00

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

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