Clients: compatibility change for old Intel graphics.

This commit is contained in:
Fabian Dill
2021-12-10 09:29:59 +01:00
parent 21fbb545e8
commit e1fc44f4e0
4 changed files with 10 additions and 7 deletions

View File

@@ -364,13 +364,11 @@ class VariaRandomizer:
self.seed = args.seed
logger.debug("seed: {}".format(self.seed))
seed4rand = self.seed
if args.raceMagic is not None:
if args.raceMagic <= 0 or args.raceMagic >= 0x10000:
print("Invalid magic")
sys.exit(-1)
seed4rand = self.seed ^ args.raceMagic
# random.seed(seed4rand)
# if no max diff, set it very high
if args.maxDifficulty:
if args.maxDifficulty == 'random':