Skip to content

Commit

Permalink
use of PDA.time instead of UnityEngine.Time.time
Browse files Browse the repository at this point in the history
  • Loading branch information
repkins committed Jan 4, 2023
1 parent 7308215 commit d419639
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions TerraformingShared/WorldStreaming/ClipmapLevelExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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);
}
Expand Down

0 comments on commit d419639

Please sign in to comment.