1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-09-02 02:37:55 +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];