1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-15 11:03:00 +01:00

Simplify garden clock paint algorithm

This commit is contained in:
matheusvb3
2025-02-11 04:16:11 -03:00
parent 7a21f5694d
commit 54404e4c8d

View File

@@ -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)
{