mirror of
https://github.com/ppy/osu.git
synced 2025-01-19 14:23:14 +08:00
Fix oversight in timekeeping
This commit is contained in:
parent
25747fdeb3
commit
7f22ade90d
@ -88,13 +88,13 @@ namespace osu.Game.Overlays.Chat
|
|||||||
{
|
{
|
||||||
base.Update();
|
base.Update();
|
||||||
|
|
||||||
int? lastMinutes = null;
|
long? lastMinutes = null;
|
||||||
|
|
||||||
for (int i = 0; i < ChatLineFlow.Count; i++)
|
for (int i = 0; i < ChatLineFlow.Count; i++)
|
||||||
{
|
{
|
||||||
if (ChatLineFlow[i] is ChatLine chatline)
|
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.AlternatingBackground = i % 2 == 0;
|
||||||
chatline.RequiresTimestamp = minutes != lastMinutes;
|
chatline.RequiresTimestamp = minutes != lastMinutes;
|
||||||
|
Loading…
Reference in New Issue
Block a user