Simplify garden clock paint algorithm

This commit is contained in:
matheusvb3 committed 2025-02-11 04:16:11 -03:00
1 parent 7a21f5694d
commit 54404e4c8d
1 file changed
+1 -5
@@ -243,11 +243,7 @@ static void PaintSmallSceneryBody(
else if (sceneryEntry->HasFlag(SMALL_SCENERY_FLAG_IS_CLOCK))
{
auto minuteImageOffset = ((gRealTimeOfDay.minute + 6) * 17) / 256;
auto timeImageBase = gRealTimeOfDay.hour;
while (timeImageBase >= 12)
{
timeImageBase -= 12;
}
auto timeImageBase = gRealTimeOfDay.hour % 12;
timeImageBase = (timeImageBase * 4) + minuteImageOffset;
if (timeImageBase >= 48)
{