Mostly refactoring, and removing the onVesselDestroy event subscription, which wasn't being very useful.
[AntennaRange.git] / ProtoAntennaRelay.cs
blob:a/ProtoAntennaRelay.cs -> blob:b/ProtoAntennaRelay.cs
--- a/ProtoAntennaRelay.cs
+++ b/ProtoAntennaRelay.cs
@@ -55,7 +55,11 @@
 			protected set;
 		}
 
-		public string Title
+		/// <summary>
+		/// Gets the underlying part's title.
+		/// </summary>
+		/// <value>The title.</value>
+		public string title
 		{
 			get
 			{
@@ -71,7 +75,7 @@
 				Tools.PostDebugMessage(string.Format(
 					"{0}: {1} on {2} cannot transmit: {3}",
 					this.GetType().Name,
-					this.Title,
+					this.title,
 					this.vessel.name,
 					Enum.GetName(typeof(PartStates), partState)
 				));
@@ -84,8 +88,8 @@
 		{
 			return string.Format(
 				"{0} on {1}.",
-				this.Title,
-				vessel.name
+				this.title,
+				this.protoPart.pVesselRef.vesselName
 			);
 		}