1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-19 02:52:54 +08:00

Fix oversight in timekeeping

This commit is contained in:
Dean Herbert 2024-07-30 21:58:54 +09:00
parent 25747fdeb3
commit 7f22ade90d
No known key found for this signature in database

View File

@ -88,13 +88,13 @@ namespace osu.Game.Overlays.Chat
{
base.Update();
int? lastMinutes = null;
long? lastMinutes = null;
for (int i = 0; i < ChatLineFlow.Count; i++)
{
if (ChatLineFlow[i] is ChatLine chatline)
{
int minutes = chatline.Message.Timestamp.TotalOffsetMinutes;
long minutes = chatline.Message.Timestamp.ToUnixTimeSeconds() / 60;
chatline.AlternatingBackground = i % 2 == 0;
chatline.RequiresTimestamp = minutes != lastMinutes;