This commit is contained in:
Regalis
2015-12-04 01:37:30 +02:00
parent c064c5eb50
commit 242af12f14
25 changed files with 200 additions and 109 deletions
@@ -152,7 +152,17 @@ namespace Barotrauma
public Hull CurrentHull
{
get { return currentHull;}
get { return currentHull; }
set
{
if (value == currentHull) return;
currentHull = value;
foreach (Limb limb in Limbs)
{
limb.body.Submarine = currentHull == null ? null : Submarine.Loaded;
}
}
}
public bool IgnorePlatforms
@@ -534,8 +544,9 @@ namespace Barotrauma
if (newHull == currentHull) return;
currentHull = newHull;
CurrentHull = newHull;
UpdateCollisionCategories();
}