From 335ee8c72e38d73d3110ec2a081a817ceb35a37a Mon Sep 17 00:00:00 2001 From: Regalis Date: Thu, 2 Mar 2017 19:39:00 +0200 Subject: [PATCH] Warning message about unlinked vents is only shown once when saving (not for each vent) --- Subsurface/Source/Map/Submarine.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Subsurface/Source/Map/Submarine.cs b/Subsurface/Source/Map/Submarine.cs index 8890f5436..d89823c29 100644 --- a/Subsurface/Source/Map/Submarine.cs +++ b/Subsurface/Source/Map/Submarine.cs @@ -947,11 +947,12 @@ namespace Barotrauma foreach (Item item in Item.ItemList) { - if (item.GetComponent() == null) continue; + if (item.GetComponent() == null) continue; if (!item.linkedTo.Any()) { errorMsgs.Add("The submarine contains vents which haven't been linked to an oxygen generator. Select a vent and click an oxygen generator while holding space to link them."); + break; } }