v0.4.1.3:
- fixed debug message height not being set correctly - fixed submarine list not being updated if host has enabled "play yourself" - fixed "queue empty" error when attempting to download a sub from the server - maximum number of iterations when carving a path for a cave
This commit is contained in:
@@ -380,10 +380,10 @@ namespace Barotrauma
|
||||
{
|
||||
if (mission !=null && mission.Completed) missionsCompleted++;
|
||||
|
||||
int seed = (int)locations[0].MapPosition.X + (int)locations[0].MapPosition.Y * 100;
|
||||
seed += (int)locations[1].MapPosition.X*10000 + (int)locations[1].MapPosition.Y * 1000000;
|
||||
long seed = (long)locations[0].MapPosition.X + (long)locations[0].MapPosition.Y * 100;
|
||||
seed += (long)locations[1].MapPosition.X*10000 + (long)locations[1].MapPosition.Y * 1000000;
|
||||
|
||||
MTRandom rand = new MTRandom(seed + missionsCompleted);
|
||||
MTRandom rand = new MTRandom((int)((seed + missionsCompleted) % int.MaxValue));
|
||||
|
||||
if (rand.NextDouble() < 0.3f) return null;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user