1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-27 14:37:16 +00:00

fixed drawing unnecessary cells in SL2

This commit is contained in:
Zeno Rogue 2020-07-28 17:04:39 +02:00
parent c23209b189
commit 0a25848633

View File

@ -2195,7 +2195,7 @@ EX bool do_draw(cell *c, const shiftmatrix& T) {
}
else if(pmodel == mdGeodesic && sl2) {
if(hypot(tC0(T.T)[2], tC0(T.T)[3]) > cosh(slr::range_xy)) return false;
if(T.shift * stretch::not_squared() > sightranges[geometry]) return false;
if(abs(T.shift * stretch::not_squared()) > sightranges[geometry]) return false;
if(!limited_generation(c)) return false;
}
else if(vid.use_smart_range) {