Server job assigning logic, submarine movement syncing, submarine collision improvements, spawnpoints in levels

This commit is contained in:
Regalis
2015-07-08 11:37:47 +03:00
parent 3af9b8183b
commit d56f7f3f77
155 changed files with 39772 additions and 261 deletions

View File

@@ -146,7 +146,7 @@ namespace Subsurface
if (commands[1].ToLower()=="human")
{
WayPoint spawnPoint = WayPoint.GetRandom(WayPoint.SpawnType.Human);
WayPoint spawnPoint = WayPoint.GetRandom(SpawnType.Human);
Character.Controlled = new Character("Content/Characters/Human/human.xml", (spawnPoint == null) ? Vector2.Zero : spawnPoint.SimPosition);
if (Game1.GameSession != null)
{
@@ -158,7 +158,7 @@ namespace Subsurface
}
else
{
WayPoint spawnPoint = WayPoint.GetRandom(WayPoint.SpawnType.Enemy);
WayPoint spawnPoint = WayPoint.GetRandom(SpawnType.Enemy);
new Character("Content/Characters/" + commands[1] + "/" + commands[1] + ".xml", (spawnPoint == null) ? Vector2.Zero : spawnPoint.SimPosition);
}