Fix excess divider mess in message display.

This commit is contained in:
Kistaro Windrider 2023-04-03 01:45:38 -07:00
parent 066ec431ff
commit 1464070339
Signed by: kistaro
SSH Key Fingerprint: SHA256:TBE2ynfmJqsAf0CP6gsflA0q5X5wD5fVKWPsZ7eVUg8

View File

@ -206,14 +206,11 @@ func displayMessageSection[C StatsCollection](p *Player[C]) bool {
if len(p.TemporaryMessages) == 0 {
return false
}
hasPrevious := false
for _, m := range p.TemporaryMessages {
if m != nil {
if hasPrevious {
lightDivider()
}
display(m)
hasPrevious = true
} else {
fmt.Println()
}
}
return true