Fixed monster/artifact events being out of sync between the server and the clients

This commit is contained in:
Regalis
2016-10-25 18:58:56 +03:00
parent c33a4ba5e5
commit ac8edb5b2a
5 changed files with 10 additions and 10 deletions

View File

@@ -976,7 +976,7 @@ namespace Barotrauma.Networking
var cargoRoom = cargoSpawnPos.CurrentHull;
Vector2 position = new Vector2(
cargoSpawnPos.Position.X + Rand.Range(-20.0f, 20.0f, false),
cargoSpawnPos.Position.X + Rand.Range(-20.0f, 20.0f),
cargoRoom.Rect.Y - cargoRoom.Rect.Height);
foreach (string s in extraCargo.Keys)