We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39c39ea commit 71f080fCopy full SHA for 71f080f
server/lights.cpp
@@ -657,9 +657,8 @@ void CDynamicLight::Precache()
657
658
if (!FStringNull(pev->message))
659
{
660
- const char *ext = UTIL_FileExtension(STRING(pev->message));
661
-
662
- if (!Q_stricmp(ext, "avi"))
+ const char *filepath = STRING(pev->message);
+ if (UTIL_ValidMovieFileExtension(filepath))
663
664
// 0 if movie not found
665
pev->sequence = UTIL_PrecacheMovie(pev->message);
0 commit comments