Skip to content

Commit

Permalink
Fix oversight in timekeeping
Browse files Browse the repository at this point in the history
  • Loading branch information
peppy committed Jul 30, 2024
1 parent 25747fd commit 7f22ade
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions osu.Game/Overlays/Chat/DrawableChannel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,13 @@ protected override void Update()
{
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;
Expand Down

0 comments on commit 7f22ade

Please sign in to comment.