1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-25 17:40:36 +00:00

allcells no longer generates too long list in S2xE

This commit is contained in:
Zeno Rogue 2019-11-15 02:54:53 +01:00
parent d10a6d10b5
commit f70d7a4f27

View File

@ -102,7 +102,7 @@ transmatrix hrmap::adj(cell *c, int i) { return calc_relative_matrix(c->cmove(i)
vector<cell*>& hrmap::allcells() { vector<cell*>& hrmap::allcells() {
static vector<cell*> default_allcells; static vector<cell*> default_allcells;
if(bounded && !(cgflags & qHUGE_BOUNDED)) { if(bounded && !(cgflags & qHUGE_BOUNDED) && !(prod && product::csteps == 0)) {
celllister cl(gamestart(), 1000000, 1000000, NULL); celllister cl(gamestart(), 1000000, 1000000, NULL);
default_allcells = cl.lst; default_allcells = cl.lst;
return default_allcells; return default_allcells;