Removing & spawning entities in the same order as the server, EntitySpawner does both removing and spawning

This commit is contained in:
Regalis
2016-10-26 16:44:59 +03:00
parent df9f89e383
commit 6f9160e4a7
13 changed files with 91 additions and 150 deletions

View File

@@ -337,12 +337,12 @@ namespace Barotrauma
if (spawnPos != null)
{
Item.Spawner.QueueItem(itemPrefab, (Vector2)spawnPos);
Item.Spawner.AddToSpawnQueue(itemPrefab, (Vector2)spawnPos);
}
else if (spawnInventory != null)
{
Item.Spawner.QueueItem(itemPrefab, (Inventory)spawnInventory);
Item.Spawner.AddToSpawnQueue(itemPrefab, (Inventory)spawnInventory);
}
break;