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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user