Fix some level flags, sokoban premapping

This commit is contained in:
Pasi Kallinen
2015-02-19 18:01:29 +02:00
parent 79eb17a0a7
commit c9d5bb9d68
5 changed files with 10 additions and 25 deletions

View File

@@ -406,10 +406,6 @@ fixup_special()
place_lregion(0,0,0,0,0,0,0,0,LR_BRANCH,(d_level *)0);
}
/* KMH -- Sokoban levels */
if(In_sokoban(&u.uz))
sokoban_detect();
/* Still need to add some stuff to level file */
if (Is_medusa_level(&u.uz)) {
struct obj *otmp;

View File

@@ -2792,17 +2792,10 @@ spo_level_flags(coder)
if (flags & NOMMAP) level.flags.nommap = 1;
if (flags & SHORTSIGHTED) level.flags.shortsighted = 1;
if (flags & ARBOREAL) level.flags.arboreal = 1;
/*
if (flags & NOFLIPX) coder->allow_flips &= ~1;
if (flags & NOFLIPY) coder->allow_flips &= ~2;
if (flags & MAZELEVEL) level.flags.is_maze_lev = 1;
if (flags & PREMAPPED) coder->premapped = TRUE;
if (flags & SHROUD) level.flags.hero_memory = 0;
if (flags & STORMY) level.flags.stormy = 1;
if (flags & GRAVEYARD) level.flags.graveyard = 1;
if (flags & SKYMAP) level.flags.sky = 1;
if (flags & FLAG_RNDVAULT) coder->allow_flips = 0;
*/
opvar_free(flagdata);
}
@@ -5048,8 +5041,6 @@ next_opcode:
remove_boundary_syms();
wallification(1, 0, COLNO-1, ROWNO-1);
/*flip_level_rnd(coder->allow_flips);*/
count_features();
if (coder->premapped) sokoban_detect();