Merge branch 'lighting-optimization'

This commit is contained in:
Regalis
2017-03-02 19:39:55 +02:00
7 changed files with 692 additions and 246 deletions

View File

@@ -368,7 +368,7 @@ namespace Barotrauma.Items.Components
LinkedGap.ConnectedDoor = this;
LinkedGap.Open = openState;
Vector2[] corners = GetConvexHullCorners(doorRect);
Vector2[] corners = GetConvexHullCorners(Rectangle.Empty);
convexHull = new ConvexHull(corners, Color.Black, item);
if (window != Rectangle.Empty) convexHull2 = new ConvexHull(corners, Color.Black, item);