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