Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| a00bdc5ff9 |
+2
-2
@@ -166,8 +166,8 @@ class Scoreboard:
|
|||||||
if name is None:
|
if name is None:
|
||||||
# Import get_input here to avoid circular imports
|
# Import get_input here to avoid circular imports
|
||||||
from .input import get_input
|
from .input import get_input
|
||||||
name = get_input("New high score! Enter your name:", "Player")
|
name = get_input("New high score! Enter your name:", "")
|
||||||
if name is None: # User cancelled
|
if name is None or name.strip() == "": # User cancelled or entered empty
|
||||||
name = "Player"
|
name = "Player"
|
||||||
|
|
||||||
# Insert new score at correct position
|
# Insert new score at correct position
|
||||||
|
|||||||
Reference in New Issue
Block a user