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

limited_generation applied in sol

This commit is contained in:
Zeno Rogue 2019-07-30 13:02:44 +02:00
parent bbabd47ad0
commit 235fdef973

View File

@ -1876,8 +1876,10 @@ bool do_draw(cell *c, const transmatrix& T) {
PROD( if(product::pmap) return product::in_actual([&] { return do_draw(product::get_at(c, product::plevel), T); }); ) PROD( if(product::pmap) return product::in_actual([&] { return do_draw(product::get_at(c, product::plevel), T); }); )
if(WDIM == 3) { if(WDIM == 3) {
if(cells_drawn > vid.cells_drawn_limit) return false; if(cells_drawn > vid.cells_drawn_limit) return false;
if(pmodel == mdSolPerspective) if(pmodel == mdSolPerspective) {
return solv::in_table_range(solv::ilocal_perspective * tC0(T)); if(!solv::in_table_range(solv::ilocal_perspective * tC0(T))) return false;
if(!limited_generation(c)) return false;
}
else if(vid.use_smart_range) { else if(vid.use_smart_range) {
if(cells_drawn >= 50 && !in_smart_range(T)) return false; if(cells_drawn >= 50 && !in_smart_range(T)) return false;
if(!limited_generation(c)) return false; if(!limited_generation(c)) return false;