Merge remote-tracking branch 'origin/master'

This commit is contained in:
Fabian Dill 2020-06-03 02:19:23 +02:00
commit 86e09f1dc2
1 changed files with 6 additions and 2 deletions

View File

@ -58,6 +58,7 @@ class Context:
self.locations_info = {} self.locations_info = {}
self.awaiting_rom = False self.awaiting_rom = False
self.rom = None self.rom = None
self.prev_rom = None
self.auth = None self.auth = None
self.found_items = found_items self.found_items = found_items
self.finished_game = False self.finished_game = False
@ -1005,8 +1006,11 @@ async def game_watcher(ctx : Context):
continue continue
ctx.rom = list(rom) ctx.rom = list(rom)
ctx.locations_checked = set() if not ctx.prev_rom or ctx.prev_rom != ctx.rom:
ctx.locations_scouted = set() ctx.locations_checked = set()
ctx.locations_scouted = set()
ctx.prev_rom = ctx.rom.copy()
if ctx.awaiting_rom: if ctx.awaiting_rom:
await server_auth(ctx, False) await server_auth(ctx, False)