fix github issue #1070 - Minetown achievement
Issue reported by vultur-cadens: arriving on the Mine Town level via falling or level teleport won't register the "entered Minetown" achievement if hero doesn't arrive inside a room. Reorder some code in check_special_room() so that town entry will be tested before the early return if no room entry has occurred. This adds 'level.flags.has_town' to make the town test be cheaper when the hero hasn't attained the achievement yet and is wandering around the mines. Fixes #1070
This commit is contained in:
@@ -793,8 +793,14 @@ clear_level_structures(void)
|
||||
gl.level.flags.is_maze_lev = 0;
|
||||
gl.level.flags.is_cavernous_lev = 0;
|
||||
gl.level.flags.arboreal = 0;
|
||||
gl.level.flags.has_town = 0;
|
||||
gl.level.flags.wizard_bones = 0;
|
||||
gl.level.flags.corrmaze = 0;
|
||||
gl.level.flags.rndmongen = 0;
|
||||
gl.level.flags.deathdrops = 0;
|
||||
gl.level.flags.noautosearch = 0;
|
||||
gl.level.flags.fumaroles = 0;
|
||||
gl.level.flags.stormy = 0;
|
||||
|
||||
gn.nroom = 0;
|
||||
gr.rooms[0].hx = -1;
|
||||
|
||||
Reference in New Issue
Block a user