mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 12:52:46 +00:00
fix a couple of gcc 2.95 warnings
This commit is contained in:
parent
e3ea39e67b
commit
bb5f5e0a0c
1 changed files with 4 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue