We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7b8ed84 commit 0643b91Copy full SHA for 0643b91
gamebro-gui.py
@@ -253,8 +253,8 @@ def newsprite(data: dict[Any, Any] = None):
253
wait_for_keypress("Invalid JSON structure.")
254
return
255
name = data["name"]
256
- if data is not None and any(s['name'] == name or data[name] for s in sprites):
257
- wait_for_keypress("Sprite name exists!" if data is None else "Sprite already exists!")
+ if data is not None and any(s['name'] == name for s in sprites):
+ wait_for_keypress("Sprite already exists!")
258
259
if is_int(name) or name in ["Sprite", "SpriteGroup", *banned_kwords] or name.startswith("Sprite_") or name.startswith("Group_"):
260
wait_for_keypress("Invalid sprite name!")
0 commit comments