Clear screen before displaying panel in stats mode.
This commit is contained in:
parent
2c2e68ff93
commit
74a2493ef4
@ -375,6 +375,7 @@ func statsMode[C StatsCollection](p *Player[C]) error {
|
|||||||
} else if v <= 0 || v > n {
|
} else if v <= 0 || v > n {
|
||||||
fmt.Println("There's no info panel with that index.")
|
fmt.Println("There's no info panel with that index.")
|
||||||
} else {
|
} else {
|
||||||
|
cls()
|
||||||
err := displayOnePanel(p, p.InfoPanels[v-1])
|
err := displayOnePanel(p, p.InfoPanels[v-1])
|
||||||
errs.Add(err)
|
errs.Add(err)
|
||||||
if IsSeriousError(err) {
|
if IsSeriousError(err) {
|
||||||
|
Loading…
Reference in New Issue
Block a user