1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-25 22:53:19 +00:00

rogueviz:: fixed ascending-descending

This commit is contained in:
Zeno Rogue 2021-03-30 23:00:03 +02:00
parent 05e7a6b717
commit 6a2553ced9
2 changed files with 5 additions and 1 deletions

View File

@ -25,6 +25,8 @@ bool usecache = true;
pair<int, hyperpoint> nilize(hyperpoint h) {
if(euclid) return {0, h - A + C0};
hyperpoint hc = h;
for(int i=0; i<4; i++) hc[i] = floor(h[i] * 1000 + .5);
if(usecache && cache.count(hc)) return cache[hc];

View File

@ -571,6 +571,8 @@ void queue_prec(const shiftmatrix& V, edgeinfo*& ei, color_t col) {
#endif
}
int brm_limit = 1000;
bool drawVertex(const shiftmatrix &V, cell *c, shmup::monster *m) {
if(m->dead) return true;
if(m->type != moRogueviz) return false;
@ -587,7 +589,7 @@ bool drawVertex(const shiftmatrix &V, cell *c, shmup::monster *m) {
bool multidraw = quotient;
bool use_brm = bounded && isize(currentmap->allcells()) <= 1000;
bool use_brm = bounded && isize(currentmap->allcells()) <= brm_limit;
if(!lshiftclick) for(int j=0; j<isize(vd.edges); j++) {
edgeinfo *ei = vd.edges[j].second;