mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-10-16 14:47:39 +00:00
PAT_TYPES now separate from PAT_NONE; PAT_* constants now use enum
This commit is contained in:
@@ -1335,7 +1335,7 @@ namespace mapeditor {
|
||||
int tg, wp;
|
||||
int nt;
|
||||
hr::ignore(fscanf(f, "%d%d%d%d\n", &tg, &nt, &wp, &patterns::subpattern_flags));
|
||||
patterns::whichPattern = wp;
|
||||
patterns::whichPattern = patterns::ePattern(wp);
|
||||
if(tg != geometry) { targetgeometry = eGeometry(tg); stop_game_and_switch_mode(rg::geometry); }
|
||||
if(bool(nt) != nonbitrunc) stop_game_and_switch_mode(rg::bitrunc);
|
||||
start_game();
|
||||
@@ -1348,7 +1348,7 @@ namespace mapeditor {
|
||||
if(siz < 0 || siz > 1000) break;
|
||||
|
||||
if(i >= 4) {
|
||||
if(i < 8) patterns::whichPattern = "xxxxfpzH"[i];
|
||||
if(i < 8) patterns::whichPattern = patterns::ePattern("xxxxfpzH"[i]);
|
||||
patterns::subpattern_flags = 0;
|
||||
i = 3;
|
||||
}
|
||||
|
Reference in New Issue
Block a user