Remove unsupported media formats from client.cpp

This commit is contained in:
wsor4035 2023-06-22 11:52:48 -04:00 committed by GitHub
parent 6a328197a5
commit 5b6bc8a12b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -770,7 +770,6 @@ bool Client::loadMedia(const std::string &data, const std::string &filename,
const char *image_ext[] = { const char *image_ext[] = {
".png", ".jpg", ".bmp", ".tga", ".png", ".jpg", ".bmp", ".tga",
".pcx", ".ppm", ".psd", ".wal", ".rgb",
NULL NULL
}; };
name = removeStringEnd(filename, image_ext); name = removeStringEnd(filename, image_ext);
@ -818,7 +817,7 @@ bool Client::loadMedia(const std::string &data, const std::string &filename,
} }
const char *model_ext[] = { const char *model_ext[] = {
".x", ".b3d", ".md2", ".obj", ".x", ".b3d", ".obj",
NULL NULL
}; };
name = removeStringEnd(filename, model_ext); name = removeStringEnd(filename, model_ext);