1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-23 21:07:17 +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

@ -2194,8 +2194,8 @@ EX bool do_draw(cell *c, const shiftmatrix& T) {
if(dist <= extra_generation_distance && !limited_generation(c)) return false; if(dist <= extra_generation_distance && !limited_generation(c)) return false;
} }
else if(pmodel == mdGeodesic && sl2) { else if(pmodel == mdGeodesic && sl2) {
if(hypot(tC0(T.T)[2], tC0(T.T)[3]) > cosh(slr::range_xy)) return false; 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; if(!limited_generation(c)) return false;
} }
else if(vid.use_smart_range) { else if(vid.use_smart_range) {