fix a couple of gcc 2.95 warnings

This commit is contained in:
Bill Currie 2003-02-19 21:41:37 +00:00
parent e3ea39e67b
commit bb5f5e0a0c

View file

@ -86,7 +86,8 @@ Mod_LoadExternalTextures (model_t *mod)
// FIXME: replace special flag characters with # or _?
if (tx->name[0] == '*') {
filename = va ("textures/%.*s/#%s.tga", strlen (mod->name + 5) - 4,
filename = va ("textures/%.*s/#%s.tga",
(int) strlen (mod->name + 5) - 4,
mod->name + 5, tx->name + 1);
QFS_FOpenFile (filename, &f);
if (!f) {
@ -98,7 +99,8 @@ Mod_LoadExternalTextures (model_t *mod)
QFS_FOpenFile (filename, &f);
}
} else {
filename = va ("textures/%.*s/%s.tga", strlen (mod->name +5) -4,
filename = va ("textures/%.*s/%s.tga",
(int) strlen (mod->name + 5) - 4,
mod->name + 5, tx->name);
QFS_FOpenFile (filename, &f);
if (!f) {