1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-13 05:37:38 +00:00

Refactoring: moved all the remaining pattern code from mapeditor to pattern2

This commit is contained in:
Zeno Rogue
2017-12-09 03:48:30 +01:00
parent 4ce1c45e4e
commit 635d1f911c
13 changed files with 734 additions and 717 deletions

View File

@@ -2161,7 +2161,7 @@ void setdist(cell *c, int d, cell *from) {
}
if(d == BARLEV && c->land == laCanvas) {
c->landparam = mapeditor::generateCanvas(c);
c->landparam = patterns::generateCanvas(c);
}
if(d >= BARLEV-1 && c->land == laPrairie)
@@ -2225,7 +2225,7 @@ void setdist(cell *c, int d, cell *from) {
if(d == 7) playSeenSound(c);
#if CAP_EDIT
if(d >= 7 && mapeditor::whichPattern)
if(d >= 7 && patterns::whichPattern)
mapeditor::applyModelcell(c);
#endif
}