optimize judge counter

This commit is contained in:
Anthony Samms
2025-10-22 00:30:15 -04:00
parent bf14857834
commit f7f2f42aac
2 changed files with 23 additions and 17 deletions

View File

@@ -182,7 +182,6 @@ class AudioEngine:
if lib.is_sound_valid(sound): # type: ignore
self.sounds[name] = sound
print(f"Loaded sound from {file_path} as {name}")
return name
else:
print(f"Failed to load sound: {file_path}")
@@ -196,7 +195,6 @@ class AudioEngine:
if name in self.sounds:
lib.unload_sound(self.sounds[name]) # type: ignore
del self.sounds[name]
print(f"Unloaded sound {name}")
else:
print(f"Sound {name} not found")