Dockingport gap linking fixes. Closes #551

- Dockingports force the hatch/door gaps to be connected to the hulls between the ports, because connecting them automatically may fail if the ports are positioned in a non-standard way.
- Gaps don't recheck hulls in OnMapLoaded if rechecks have been disabled.
- Item.UpdateHulls and Gap.UpdateHulls are not called when OnMapLoaded is called during ruin generation.
This commit is contained in:
Joonas Rikkonen
2018-08-07 12:45:45 +03:00
parent 5354670288
commit 4b0c54d664
4 changed files with 41 additions and 7 deletions
@@ -391,8 +391,11 @@ namespace Barotrauma
mapEntityList[i].OnMapLoaded();
}
Item.UpdateHulls();
Gap.UpdateHulls();
if (sub != null)
{
Item.UpdateHulls();
Gap.UpdateHulls();
}
foreach (LinkedSubmarine linkedSub in linkedSubs)
{