1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-05-19 20:42:06 +00:00

Fix freeze if Ancient Jewelry ends up on a tile with a large landparam

This commit is contained in:
Joseph C. Sible
2025-10-11 21:04:32 -04:00
parent f061dd6cf6
commit de6f84815d
3 changed files with 13 additions and 5 deletions
+2 -2
View File
@@ -256,8 +256,8 @@ EX bool drawItemType(eItem it, cell *c, const shiftmatrix& V, color_t icol, int
}
else if(it == itBarrow && c) {
for(int i = 0; i<c->landparam; i++)
queuepolyat(Vit * spin(TAU * i / c->landparam) * xpush(.15 * cgi.scalefactor) * spinptick(1500, 0), *xsh, darkena(icol, 0, hidden ? 0x40 :
for(int i = 0; i<barrowCount(c); i++)
queuepolyat(Vit * spin(TAU * i / barrowCount(c)) * xpush(.15 * cgi.scalefactor) * spinptick(1500, 0), *xsh, darkena(icol, 0, hidden ? 0x40 :
(highwall(c) && wmspatial) ? 0x60 : 0xFF),
PPR::HIDDEN);
}