mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-23 07:27:07 +00:00
rogueviz:: fixed ascending-descending
This commit is contained in:
parent
05e7a6b717
commit
6a2553ced9
@ -25,6 +25,8 @@ bool usecache = true;
|
|||||||
|
|
||||||
pair<int, hyperpoint> nilize(hyperpoint h) {
|
pair<int, hyperpoint> nilize(hyperpoint h) {
|
||||||
|
|
||||||
|
if(euclid) return {0, h - A + C0};
|
||||||
|
|
||||||
hyperpoint hc = h;
|
hyperpoint hc = h;
|
||||||
for(int i=0; i<4; i++) hc[i] = floor(h[i] * 1000 + .5);
|
for(int i=0; i<4; i++) hc[i] = floor(h[i] * 1000 + .5);
|
||||||
if(usecache && cache.count(hc)) return cache[hc];
|
if(usecache && cache.count(hc)) return cache[hc];
|
||||||
|
@ -571,6 +571,8 @@ void queue_prec(const shiftmatrix& V, edgeinfo*& ei, color_t col) {
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int brm_limit = 1000;
|
||||||
|
|
||||||
bool drawVertex(const shiftmatrix &V, cell *c, shmup::monster *m) {
|
bool drawVertex(const shiftmatrix &V, cell *c, shmup::monster *m) {
|
||||||
if(m->dead) return true;
|
if(m->dead) return true;
|
||||||
if(m->type != moRogueviz) return false;
|
if(m->type != moRogueviz) return false;
|
||||||
@ -587,7 +589,7 @@ bool drawVertex(const shiftmatrix &V, cell *c, shmup::monster *m) {
|
|||||||
|
|
||||||
bool multidraw = quotient;
|
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++) {
|
if(!lshiftclick) for(int j=0; j<isize(vd.edges); j++) {
|
||||||
edgeinfo *ei = vd.edges[j].second;
|
edgeinfo *ei = vd.edges[j].second;
|
||||||
|
Loading…
Reference in New Issue
Block a user