1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-09-04 03:27:55 +00:00

using viewcenter() consistently

This commit is contained in:
Zeno Rogue
2019-08-17 23:29:11 +02:00
parent 6958cbcbd9
commit 95da7ff09e
5 changed files with 13 additions and 13 deletions

View File

@@ -1013,7 +1013,7 @@ bool texture_config::save() {
targetgeometry = geometry;
targetvariation = variation;
cell *ctr = euclid ? centerover.at : viewctr.at->c7;
cell *ctr = viewcenter();
si_save = patterns::getpatterninfo0(ctr);
if(archimedean) csymbol = arcm::current.symbol;
@@ -1072,7 +1072,7 @@ bool texture_config::load() {
celllister cl(currentmap->gamestart(), 20, 10000, NULL);
bool found = false;
for(cell *c: cl.lst) if(euclid || ctof(c)) {
cell *ctr = euclid ? centerover.at : viewctr.at->c7;
cell *ctr = viewcenter();
auto si_here = patterns::getpatterninfo0(c);
if(si_here.id == si_save.id && si_here.reflect == si_save.reflect && si_here.dir == si_save.dir) {
if(euclid) centerover.at = ctr;