Difference between revisions of "GetCurrentGameTime - Utility"
Jump to navigation
Jump to search
→Return Value
Tag: Reverted |
Tag: Reverted |
||
Line 23: | Line 23: | ||
You must use a rounding function to cast the returned value to an exact integer i.e. | You must use a rounding function to cast the returned value to an exact integer i.e. | ||
( day == Math.Floor(Utility.GetCurrentGameTime()) ) | ( (an integer) day == Math.Floor(Utility.GetCurrentGameTime()) ) | ||
or maybe | or maybe | ||
( day == Math.Ceil(Utility.GetCurrentGameTime()) ) | ( (an integer) day == Math.Ceil(Utility.GetCurrentGameTime()) ) | ||
== Examples == | == Examples == |