1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-13 13:47:37 +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

@@ -22,14 +22,14 @@ void setCanvas(presmode mode, char canv) {
static char wc;
static eLand ld;
if(mode == pmStart) {
wc = mapeditor::whichCanvas;
mapeditor::whichCanvas = canv;
wc = patterns::whichCanvas;
patterns::whichCanvas = canv;
ld = firstland;
firstland = laCanvas;
restartGame(0, true);
}
if(mode == pmStop) {
mapeditor::whichCanvas = wc;
patterns::whichCanvas = wc;
firstland = ld;
popGame();
}
@@ -595,11 +595,11 @@ slide default_slides[] = {
[] (presmode mode) {
setCanvas(mode, 't');
if(mode == 1)
mapeditor::displaycodes = 2,
mapeditor::whichPattern = 'z';
patterns::displaycodes = 2,
patterns::whichPattern = 'z';
if(mode == 3)
mapeditor::displaycodes = 0,
mapeditor::whichPattern = 0;
patterns::displaycodes = 0,
patterns::whichPattern = 0;
SHOWLAND ( l == laCanvas );
}
},