(9f9b86b9b) Fixed tutorial level generation params being used in normal levels.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Barotrauma.Extensions;
|
||||
using Microsoft.Xna.Framework;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
@@ -368,7 +369,7 @@ namespace Barotrauma
|
||||
|
||||
if (biome == null)
|
||||
{
|
||||
return levelParams[Rand.Range(0, levelParams.Count, Rand.RandSync.Server)];
|
||||
return levelParams.GetRandom(lp => lp.allowedBiomes.Count > 0, Rand.RandSync.Server);
|
||||
}
|
||||
|
||||
var matchingLevelParams = levelParams.FindAll(lp => lp.allowedBiomes.Contains(biome));
|
||||
|
||||
Reference in New Issue
Block a user