From d419639bf9e7fc55a598e8b82d6c47cb4e3a71c6 Mon Sep 17 00:00:00 2001 From: Antons Repins Date: Wed, 4 Jan 2023 17:22:05 +0200 Subject: [PATCH] use of PDA.time instead of UnityEngine.Time.time --- TerraformingShared/WorldStreaming/ClipmapLevelExtensions.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TerraformingShared/WorldStreaming/ClipmapLevelExtensions.cs b/TerraformingShared/WorldStreaming/ClipmapLevelExtensions.cs index 8aa439e..e92f0f7 100644 --- a/TerraformingShared/WorldStreaming/ClipmapLevelExtensions.cs +++ b/TerraformingShared/WorldStreaming/ClipmapLevelExtensions.cs @@ -71,7 +71,7 @@ public static void OnEndBuildLayers(this ClipmapLevel clipmapLevel, ClipmapCell if (rebuildingMessage != null) { - ErrorMessageExtensions.SetMessageTimeEnd(rebuildingMessage, Time.time); + ErrorMessageExtensions.SetMessageTimeEnd(rebuildingMessage, PDA.time); ErrorMessageExtensions.pendingMessageToRemove = rebuildingMessage; rebuildingMessage = null; } @@ -81,7 +81,7 @@ public static void OnEndBuildLayers(this ClipmapLevel clipmapLevel, ClipmapCell { var oldTimeEnd = ErrorMessageExtensions.GetMessageTimeEnd(rebuildingMessage); var timeFadeOut = ErrorMessageExtensions.GetTimeFadeOut(); - if (oldTimeEnd - timeFadeOut < Time.time) + if (oldTimeEnd - timeFadeOut < PDA.time) { rebuildingMessage = ErrorMessageExtensions.AddReturnMessage(rebuildingTerrainMsg); }