Entwickler machen ein paar Sachen
This commit is contained in:
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user