mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-17 09:22:43 +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 _?
|
// FIXME: replace special flag characters with # or _?
|
||||||
if (tx->name[0] == '*') {
|
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);
|
mod->name + 5, tx->name + 1);
|
||||||
QFS_FOpenFile (filename, &f);
|
QFS_FOpenFile (filename, &f);
|
||||||
if (!f) {
|
if (!f) {
|
||||||
|
@ -98,7 +99,8 @@ Mod_LoadExternalTextures (model_t *mod)
|
||||||
QFS_FOpenFile (filename, &f);
|
QFS_FOpenFile (filename, &f);
|
||||||
}
|
}
|
||||||
} else {
|
} 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);
|
mod->name + 5, tx->name);
|
||||||
QFS_FOpenFile (filename, &f);
|
QFS_FOpenFile (filename, &f);
|
||||||
if (!f) {
|
if (!f) {
|
||||||
|
|
Loading…
Reference in a new issue