Started refactoring the submarine class in order to make it possible to add multiple submarines (or other movable structures)
This commit is contained in:
@@ -525,7 +525,7 @@ namespace Barotrauma
|
||||
CurrentHull = Hull.FindHull(WorldPosition, CurrentHull);
|
||||
if (body != null)
|
||||
{
|
||||
Submarine = CurrentHull == null ? null : Submarine.Loaded;
|
||||
Submarine = CurrentHull == null ? null : CurrentHull.Submarine;
|
||||
body.Submarine = Submarine;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user