Fixed IsNight. It never worked.

Controls
Clonkonaut 2015-07-23 12:45:01 +02:00
parent a172245c1e
commit b8652fa5ba
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ public func IsNight()
{
var night_start = (time_set.sunset_start + time_set.sunset_end) / 2;
var night_end = (time_set.sunrise_start + time_set.sunrise_end) / 2;
if (Inside(time, night_start, night_end))
if (!Inside(time, night_end, night_start))
return true;
return false;
}