Skip to content

Commit 038fd0b

Browse files
committed
Add comment about engine_sound.is_sound_precached.
1 parent 1a01db3 commit 038fd0b

File tree

1 file changed

+4
-0
lines changed
  • addons/source-python/packages/source-python/engines

1 file changed

+4
-0
lines changed

addons/source-python/packages/source-python/engines/sound.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,8 @@ def is_precached(self):
323323
324324
:rtype: bool
325325
"""
326+
# We can't use engine_sound.is_sound_precached here because it always
327+
# returns True.
326328
return string_tables.soundprecache[self.sample] != INVALID_STRING_INDEX
327329

328330

@@ -368,5 +370,7 @@ def is_precached(self):
368370
369371
:rtype: bool
370372
"""
373+
# We can't use engine_sound.is_sound_precached here because it always
374+
# returns True.
371375
index = string_tables.soundprecache[self._stream_sample]
372376
return index != INVALID_STRING_INDEX

0 commit comments

Comments
 (0)