Entwickler machen ein paar Sachen

This commit is contained in:
Simon Lübeß
2024-04-08 20:33:29 +02:00
parent 630e9d96de
commit defd359852
9 changed files with 236 additions and 65 deletions

View File

@ -47,7 +47,14 @@ public class TimeManager : MonoBehaviourSingleton<TimeManager>
double realSeconds = GameManager.Instance.ExpectedRemainingGameDuration;
double gameDays = realSeconds / _secondsPerDay;
return CurrentDate.AddDays(gameDays);
if (double.IsFinite(gameDays))
{
return CurrentDate.AddDays(gameDays);
}
else
{
return DateTime.MaxValue;
}
}
}